config.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. return [
  3. // 默认模块名
  4. // 'default_module' => 'admin',
  5. // 默认控制器名
  6. 'default_controller' => 'index',
  7. // 默认操作名
  8. 'default_action' => 'index',
  9. // +----------------------------------------------------------------------
  10. // | 会话设置
  11. // +----------------------------------------------------------------------
  12. 'session' => [
  13. 'id' => '',
  14. // SESSION_ID的提交变量,解决flash上传跨域
  15. 'var_session_id' => '',
  16. // SESSION 前缀
  17. 'prefix' => 'admin_',
  18. // 驱动方式 支持redis memcache memcached
  19. 'type' => '',
  20. // 是否自动开启 SESSION
  21. 'auto_start' => true,
  22. ],
  23. // +----------------------------------------------------------------------
  24. // | Cookie设置
  25. // +----------------------------------------------------------------------
  26. 'cookie' => [
  27. // cookie 名称前缀
  28. 'prefix' => 'admin_',
  29. // cookie 保存时间
  30. 'expire' => 0,
  31. // cookie 保存路径
  32. 'path' => '/',
  33. // cookie 有效域名
  34. 'domain' => '',
  35. // cookie 启用安全传输
  36. 'secure' => false,
  37. // httponly设置
  38. 'httponly' => '',
  39. // 是否使用 setcookie
  40. 'setcookie' => true,
  41. ],
  42. //默认错误跳转对应的模板文件
  43. 'dispatch_error_tmpl' => 'common@waring/jump',
  44. //默认成功跳转对应的模板文件
  45. 'dispatch_success_tmpl' => 'common@waring/jump',
  46. 'admin_static' => '/static',
  47. 'upload_path'=> '',
  48. 'admin_is_trator' => [1],
  49. ];