marlonfan/laravel-smarty is a Laravel package for laravel + smarty from cc.
It currently has 0 GitHub stars and 9 downloads on Packagist (latest version 1.0.6).
Install it with composer require marlonfan/laravel-smarty.
Discover more Laravel packages by marlonfan
or browse all Laravel packages to compare alternatives.
Last updated
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=pluginsviews/blog/post.tpl,那controller中是这样渲染的,View::make('blog.post'){include} 或 {extends} 标签的参数传递, 需要使用全路径的写法, 例如: {extends file="blog/post.tpl"}template_pathcache_pathcompile_pathconfigs_paths