mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
44 lines
1.6 KiB
PHP
44 lines
1.6 KiB
PHP
<?php
|
||
|
||
// +----------------------------------------------------------------------
|
||
// | ThinkAdmin
|
||
// +----------------------------------------------------------------------
|
||
// | 版权所有 2014~2017 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
|
||
// +----------------------------------------------------------------------
|
||
// | 官方网站: http://think.ctolog.com
|
||
// +----------------------------------------------------------------------
|
||
// | 开源协议 ( https://mit-license.org )
|
||
// +----------------------------------------------------------------------
|
||
// | github开源项目:https://github.com/zoujingli/ThinkAdmin
|
||
// +----------------------------------------------------------------------
|
||
|
||
// 模板常量声明
|
||
$appRoot = app('request')->root();
|
||
$uriRoot = rtrim(preg_match('/\.php$/', $appRoot) ? dirname($appRoot) : $appRoot, '\\/');
|
||
|
||
return [
|
||
// 模板引擎类型 支持 php think 支持扩展
|
||
'type' => 'Think',
|
||
// 模板路径
|
||
'view_path' => '',
|
||
// 模板后缀
|
||
'view_suffix' => 'html',
|
||
// 模板文件名分隔符
|
||
'view_depr' => DIRECTORY_SEPARATOR,
|
||
// 模板引擎普通标签开始标记
|
||
'tpl_begin' => '{',
|
||
// 模板引擎普通标签结束标记
|
||
'tpl_end' => '}',
|
||
// 标签库标签开始标记
|
||
'taglib_begin' => '{',
|
||
// 标签库标签结束标记
|
||
'taglib_end' => '}',
|
||
// 定义模板替换字符串
|
||
'tpl_replace_string' => [
|
||
'__APP__' => $appRoot,
|
||
'__ROOT__' => $uriRoot,
|
||
'__STATIC__' => $uriRoot . "/static",
|
||
],
|
||
];
|
||
|