使用topthink/think-template模板,如何配置模板選項(xiàng)?
直接在view配置文件內(nèi)寫options配置項(xiàng)可以的
對(duì),在config/view.php 里加options選項(xiàng)。
use support\view\ThinkPHP;
return [
'handler' => ThinkPHP::class,
'options' => [
'tpl_begin' => '{',
'tpl_end' => '}',
]
];
具體有哪些選項(xiàng)參考 https://www.kancloud.cn/manual/think-template/1286404