PHP code example of lascyb / think-template
1. Go to this page and download the library: Download lascyb/think-template library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lascyb / think-template example snippets
//在view 增加参数
[
"view_config_suffix"=>"json", // 默认模板配置后缀,其他后缀解析暂未完成
"view_config_prefix" => "__Page",//调用前缀,默认为__Page
];
return [
// 模板引擎类型使用Lascyb
'type' => 'Lascyb',
// 主题模板使用 default,不使用填 false
'theme' =>'default'
];