stonenyy/view

一个PHP视图类

Maintainers

Package info

github.com/stonenyy/View

Homepage

pkg:composer/stonenyy/view

Statistics

Installs: 21

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-master 2017-07-06 02:48 UTC

This package is not auto-updated.

Last update: 2026-02-24 23:33:46 UTC


README

A view class for php

Install

in composer.json:

require: {
    "stonenyy/view": "dev-master"
}

Examples

in autoload.php:

use STONENYY\View as View;
View::config(['path' => APP_PATH.'/views/']);

in *controller.php:

use STONENYY\View as View;
View::set(array('data' => array('test')));
View::show('home'); //this 'home' is home.php in view path

in home.php:

var_dump($data);