stonenyy / view
一个PHP视图类
dev-master
2017-07-06 02:48 UTC
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2024-09-24 16:50:42 UTC
README
PHP视图类
安装
在composer.json中
require: {
"stonenyy/view": "dev-master"
}
示例
在autoload.php中
use STONENYY\View as View; View::config(['path' => APP_PATH.'/views/']);
在*controller.php中
use STONENYY\View as View; View::set(array('data' => array('test'))); View::show('home'); //this 'home' is home.php in view path
在home.php中
var_dump($data);