config.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. return [
  12. 'session' => [
  13. // SESSION 前缀
  14. 'prefix' => 'admin',
  15. // 驱动方式 支持redis memcache memcached
  16. 'type' => '',
  17. // 是否自动开启 SESSION
  18. 'auto_start' => true,
  19. ],
  20. 'app_debug' => true,
  21. // 应用Trace
  22. 'app_trace' => false,
  23. 'exception_handle' => app\admin\controller\AdminException::class,
  24. 'empty_controller' =>'Index',
  25. // 视图输出字符串内容替换
  26. 'view_replace_str' => [
  27. '{__PUBLIC_PATH}' => PUBILC_PATH, //public 目录
  28. '{__STATIC_PATH}' => PUBILC_PATH.'static/', //全局静态目录
  29. '{__PLUG_PATH}' => PUBILC_PATH.'static/plug/', //全局静态插件
  30. '{__ADMIN_PATH}' => PUBILC_PATH.'system/', //后台目录
  31. '{__FRAME_PATH}' => PUBILC_PATH.'system/frame/', //后台框架
  32. '{__MODULE_PATH}' => PUBILC_PATH.'system/module/',//后台模块
  33. ]
  34. ];