template.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2013-present http://www.thinkcmf.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Released under the MIT License.
  8. // +----------------------------------------------------------------------
  9. // | Author: Dean <zxxjjforever@163.com>
  10. // +----------------------------------------------------------------------
  11. // 请不要随意修改此文件内容
  12. return [
  13. // 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写
  14. 'auto_rule' => 1,
  15. // 模板引擎类型 支持 php think 支持扩展
  16. 'type' => 'Think',
  17. // 视图基础目录,配置目录为所有模块的视图起始目录
  18. 'view_base' => '',
  19. // 当前模板的视图目录 留空为自动获取
  20. 'view_path' => '',
  21. // 模板后缀
  22. 'view_suffix' => 'html',
  23. // 模板文件名分隔符
  24. 'view_depr' => DIRECTORY_SEPARATOR,
  25. // 模板引擎普通标签开始标记
  26. 'tpl_begin' => '{',
  27. // 模板引擎普通标签结束标记
  28. 'tpl_end' => '}',
  29. // 标签库标签开始标记
  30. 'taglib_begin' => '<',
  31. // 标签库标签结束标记
  32. 'taglib_end' => '>',
  33. 'taglib_build_in' => 'cmf\lib\taglib\Cmf,cx',
  34. 'default_filter' => '',
  35. // +----------------------------------------------------------------------
  36. // | CMF 设置
  37. // +----------------------------------------------------------------------
  38. 'cmf_theme_path' => 'themes/',
  39. 'cmf_default_theme' => 'default',
  40. 'cmf_admin_theme_path' => 'themes/',
  41. 'cmf_admin_default_theme' => 'admin_simpleboot3',
  42. 'tpl_replace_string' => [
  43. '__STATIC__' => '/static',
  44. '__ROOT__' => '',
  45. ]
  46. ];