roferwoo / tp5-smarty
ThinkPHP5 Smarty Template Driver Support Template Theme
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.4.0
- smarty/smarty: ^3.1
This package is not auto-updated.
Last update: 2025-06-07 04:53:01 UTC
README
tp5-smarty
ThinkPHP5 Smarty 引擎驱动,支持模板主题与模板布局配置。
安装方法
使用composer安装模版引擎方法:
composer require roferwoo/tp5-smarty
配置参数
在ThinkPHP5的基础上,可添加配置以下参数:
// 模板主题目录
'view_theme' => 'default',
// 模板布局
'page_layout' => [
'header' => 'path/to/header.html', // 或 'no_header' => 1,
'footer' => 'path/to/footer.html', // 或 'no_footer' => 1,
],