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