config.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2016 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. // $Id$
  12. return [
  13. 'url_route_on' => true,
  14. 'log' => [
  15. 'type' => 'file', // 支持 socket trace file
  16. ],
  17. 'view' => [
  18. // 模板引擎
  19. 'engine_type' => 'think',
  20. // 模板引擎配置
  21. 'engine_config' => [
  22. // 模板路径
  23. 'view_path' => '',
  24. // 模板后缀
  25. 'view_suffix' => '.html',
  26. // 模板文件名分隔符
  27. 'view_depr' => DS,
  28. ],
  29. // 输出字符串替换
  30. 'parse_str' => [],
  31. ],
  32. ];