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.

45 lines
1.5 KiB

1 year ago
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 路由设置
  4. // +----------------------------------------------------------------------
  5. return [
  6. // pathinfo分隔符
  7. 'pathinfo_depr' => '/',
  8. // URL伪静态后缀
  9. 'url_html_suffix' => '',
  10. // URL普通方式参数 用于自动生成
  11. 'url_common_param' => true,
  12. // 是否开启路由延迟解析
  13. 'url_lazy_route' => false,
  14. // 是否强制使用路由
  15. 'url_route_must' => true,
  16. // 合并路由规则
  17. 'route_rule_merge' => false,
  18. // 路由是否完全匹配
  19. 'route_complete_match' => false,
  20. // 访问控制器层名称
  21. 'controller_layer' => 'controller',
  22. // 空控制器名
  23. 'empty_controller' => 'Error',
  24. // 是否使用控制器后缀
  25. 'controller_suffix' => false,
  26. // 默认的路由变量规则
  27. 'default_route_pattern' => '[\w\.]+',
  28. // 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
  29. 'request_cache_key' => false,
  30. // 请求缓存有效期
  31. 'request_cache_expire' => null,
  32. // 全局请求缓存排除规则
  33. 'request_cache_except' => [],
  34. // 默认控制器名
  35. 'default_controller' => 'Index',
  36. // 默认操作名
  37. 'default_action' => 'index',
  38. // 操作方法后缀
  39. 'action_suffix' => '',
  40. // 默认JSONP格式返回的处理方法
  41. 'default_jsonp_handler' => 'jsonpReturn',
  42. // 默认JSONP处理方法
  43. 'var_jsonp_handler' => 'callback',
  44. ];