route.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2026 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. // +----------------------------------------------------------------------
  12. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  13. // +----------------------------------------------------------------------
  14. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  15. // +----------------------------------------------------------------------
  16. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  17. // +----------------------------------------------------------------------
  18. // | Author: liu21st <liu21st@gmail.com>
  19. // +----------------------------------------------------------------------
  20. // +----------------------------------------------------------------------
  21. // | 应用设置
  22. // +----------------------------------------------------------------------
  23. return [
  24. // pathinfo分隔符
  25. 'pathinfo_depr' => '/',
  26. // URL伪静态后缀
  27. 'url_html_suffix' => 'html',
  28. // URL普通方式参数 用于自动生成
  29. 'url_common_param' => true,
  30. // 是否开启路由延迟解析
  31. 'url_lazy_route' => false,
  32. // 是否强制使用路由
  33. 'url_route_must' => true,
  34. // 合并路由规则
  35. 'route_rule_merge' => false,
  36. // 路由是否完全匹配
  37. 'route_complete_match' => true,
  38. // 使用注解路由
  39. 'route_annotation' => false,
  40. // 是否开启路由缓存
  41. 'route_check_cache' => false,
  42. // 路由缓存连接参数
  43. 'route_cache_option' => [],
  44. // 路由缓存Key
  45. 'route_check_cache_key' => '',
  46. // 访问控制器层名称
  47. 'controller_layer' => 'controller',
  48. // 空控制器名
  49. 'empty_controller' => 'Error',
  50. // 是否使用控制器后缀
  51. 'controller_suffix' => false,
  52. // 默认的路由变量规则
  53. 'default_route_pattern' => '[\w\.]+',
  54. // 是否自动转换URL中的控制器和操作名
  55. 'url_convert' => true,
  56. // 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
  57. 'request_cache' => false,
  58. // 请求缓存有效期
  59. 'request_cache_expire' => null,
  60. // 全局请求缓存排除规则
  61. 'request_cache_except' => [],
  62. // 默认控制器名
  63. 'default_controller' => 'Index',
  64. // 默认操作名
  65. 'default_action' => 'index',
  66. // 操作方法后缀
  67. 'action_suffix' => '',
  68. // 默认JSONP格式返回的处理方法
  69. 'default_jsonp_handler' => 'jsonpReturn',
  70. // 默认JSONP处理方法
  71. 'var_jsonp_handler' => 'callback',
  72. ];