tinylara/tinyview
最新稳定版本:v1.2.2
Composer 安装命令:
composer require tinylara/tinyview
包简介
Tiny View Loader used by TinyLara.
README 文档
README
TinyView is a tiny view-loader used by Tinylara, fast and sexy! Read the documentation.
Install
If you have Composer, just include TinyView as a project dependency in your composer.json. If you don't just install it by downloading the .ZIP file and extracting it to your project directory.
require: {
"tinylara/tinyview": "*"
}
Examples
Load it:
// VIEW_BASE_PATH define('VIEW_BASE_PATH', __DIR__.'/app/views/'); // View Loader class_alias('\TinyLara\TinyView\TinyView','View');
Use it:
$view = View::make('home')->with('article',Article::first()) ->withTitle('TinyLara :-D') ->withFooBar('foo_bar'); View::process($view);
License
The TinyView is open-sourced software licensed under the MIT license
统计信息
- 总下载量: 701
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-05