x-bird/smarty is a Laravel package for 改自latrell/smarty,增加配置项,让其支持fis smarty插件的配置项..
It currently has 3 GitHub stars and 495 downloads on Packagist (latest version 1.4).
Install it with composer require x-bird/smarty.
Discover more Laravel packages by x-bird
or browse all Laravel packages to compare alternatives.
Last updated
composer require x-bird/smarty
config/app.php 文件中配置: 'providers' => array(
// ...
Xbird\Smarty\SmartyServiceProvider::class,
)
php artisan vendor:publish --provider="Xbird\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