No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

template.php 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. // +----------------------------------------------------------------------
  12. // | 模板设置
  13. // +----------------------------------------------------------------------
  14. return [
  15. // 模板引擎类型 支持 php think 支持扩展
  16. 'type' => 'Think',
  17. // 模板路径
  18. 'view_path' => '',
  19. // 模板后缀
  20. 'view_suffix' => 'html',
  21. //模板输出替换
  22. 'tpl_replace_string' => [
  23. '__STATIC__' => ROOT_URL . (defined('IF_PUBLIC') ? 'static' : 'public/static'),
  24. '__UPLOAD__' => ROOT_URL . (defined('IF_PUBLIC') ? 'uploads' : 'public/uploads'),
  25. '__ADDONS__' => ROOT_URL . (defined('IF_PUBLIC') ? 'static' : 'public/static') . '/addons',
  26. //cms模块
  27. '__IMG_PATH__' => ROOT_URL . (defined('IF_PUBLIC') ? 'static' : 'public/static') . '/addons/cms/images',
  28. '__CSS_PATH__' => ROOT_URL . (defined('IF_PUBLIC') ? 'static' : 'public/static') . '/addons/cms/css',
  29. '__JS_PATH__' => ROOT_URL . (defined('IF_PUBLIC') ? 'static' : 'public/static') . '/addons/cms/js',
  30. '__HOME_PATH__' => ROOT_URL . (defined('IF_PUBLIC') ? 'static' : 'public/static') . '/addons/cms',
  31. ],
  32. // 模板文件名分隔符
  33. 'view_depr' => DIRECTORY_SEPARATOR,
  34. // 模板引擎普通标签开始标记
  35. 'tpl_begin' => '{',
  36. // 模板引擎普通标签结束标记
  37. 'tpl_end' => '}',
  38. // 标签库标签开始标记
  39. 'taglib_begin' => '{',
  40. // 标签库标签结束标记
  41. 'taglib_end' => '}',
  42. 'taglib_build_in' => 'cx,app\common\taglib\Yzn',
  43. 'taglib_pre_load' => '',
  44. ];