| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- // +----------------------------------------------------------------------
- // | ThinkPHP [ WE CAN DO IT JUST THINK ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
- // +----------------------------------------------------------------------
- // | Author: liu21st <liu21st@gmail.com>
- // +----------------------------------------------------------------------
- return [
- 'session' => [
- // SESSION 前缀
- 'prefix' => 'admin',
- // 驱动方式 支持redis memcache memcached
- 'type' => '',
- // 是否自动开启 SESSION
- 'auto_start' => true,
- ],
- 'app_debug' => true,
- // 应用Trace
- 'app_trace' => false,
- 'exception_handle' => app\admin\controller\AdminException::class,
- 'empty_controller' =>'Index',
- // 视图输出字符串内容替换
- 'view_replace_str' => [
- '{__PUBLIC_PATH}' => PUBILC_PATH, //public 目录
- '{__STATIC_PATH}' => PUBILC_PATH.'static/', //全局静态目录
- '{__PLUG_PATH}' => PUBILC_PATH.'static/plug/', //全局静态插件
- '{__ADMIN_PATH}' => PUBILC_PATH.'system/', //后台目录
- '{__FRAME_PATH}' => PUBILC_PATH.'system/frame/', //后台框架
- '{__MODULE_PATH}' => PUBILC_PATH.'system/module/',//后台模块
- ]
- ];
|