app.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | 应用设置
  4. // +----------------------------------------------------------------------
  5. return [
  6. // 应用的命名空间
  7. 'app_namespace' => '',
  8. // 是否启用路由
  9. 'with_route' => true,
  10. // 默认应用
  11. 'default_app' => 'index',
  12. // 默认时区
  13. 'default_timezone' => 'Asia/Shanghai',
  14. // 应用映射(自动多应用模式有效)
  15. 'app_map' => [],
  16. // 域名绑定(自动多应用模式有效)
  17. 'domain_bind' => [],
  18. // 禁止URL访问的应用列表(自动多应用模式有效)
  19. 'deny_app_list' => ['common', 'admin', 'install'],
  20. // 异常页面的模板文件
  21. 'exception_tmpl' => app_path() . 'common' . DIRECTORY_SEPARATOR . 'view' . DIRECTORY_SEPARATOR . 'think_exception.tpl',
  22. // 默认跳转页面对应的模板文件
  23. 'dispatch_success_tmpl' => app_path() . 'common' . DIRECTORY_SEPARATOR . 'view' . DIRECTORY_SEPARATOR . 'dispatch_jump.tpl',
  24. 'dispatch_error_tmpl' => app_path() . 'common' . DIRECTORY_SEPARATOR . 'view' . DIRECTORY_SEPARATOR . 'dispatch_jump.tpl',
  25. // 配置仅在部署模式下面生效
  26. 'http_exception_template' => [
  27. 404 => app_path() . 'common' . DIRECTORY_SEPARATOR . 'view' . DIRECTORY_SEPARATOR . '404.tpl',
  28. // 还可以定义其它的HTTP status
  29. //401 => app()->getBasePath() . '401.html',
  30. ],
  31. // 错误显示信息,非调试模式有效
  32. 'error_message' => '页面错误!请稍后再试~',
  33. // 显示错误信息
  34. 'show_error_msg' => true,
  35. ];