Downloads
Stars
Version
composer require double-c/laravel-smarty
config/app.php
文件中配置: 'providers' => array(
// ...
double-c\Smarty\SmartyServiceProvider::class,
)
php artisan vendor:publish --provider="DoubleC\Smarty\SmartyServiceProvider" --tag=config --tag=plugins
views/blog/post.tpl
,那controller中是这样渲染的,View::make('blog.post')
{include}
或 {extends}
标签的参数传递, 需要使用全路径的写法, 例如: {extends file="blog/post.tpl"}
template_path
cache_path
compile_path
configs_paths