stonenyy / view
一个PHP视图类
dev-master
2017-07-06 02:48 UTC
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2025-06-17 20:23:45 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);