<?phpreturn [ //调试模式,会输出错误信息 'debug' => true, //数据库配置 'db' => [ 'type' => 'mysql', 'server' => 'localhost', 'port' => 3306, 'db' => 'tmp', 'user' => 'root', 'pwd' => '', 'prefix' => 'test_' ], //开启restful 'rest' => true, //模块,控制器,操作 默认关键字 'module_key' => 'm', 'ctrl_key' => 'c', 'action_key' => 'a', //路由表 'route' => ['*' => [ 'debug/{test}' => 'index->debug' // URL样式=>对应的控制器 ] ], //模板后缀 'tpl_suffix' => 'html', //是否记录日志 'log' => true, //url 样式 //0=module/ctrl/action/key1/value1/key2/value2 //1=module.php?{$ctrl_key}=ctrl&{$action_key}=action&key1=value1 //2=?{$module_key}=module&{$ctrl_key}=ctrl&{$action_key}=action&key1=value1 'url_style' => 1];
请发表评论