init
This commit is contained in:
41
app/admin/config.php
Executable file
41
app/admin/config.php
Executable file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'app_debug' => true,
|
||||
'exception_tmpl' => APP_PATH . 'common' . DS . 'view' . DS . 'tpl' . DS . 'think_exception.tpl',
|
||||
|
||||
//管理员用户ID
|
||||
'user_administrator' => 1,
|
||||
// 默认跳转页面对应的模板文件
|
||||
'dispatch_success_tmpl' => APP_PATH . 'common' . DS . 'view' . DS . 'tpl' . DS . 'dispatch_jump.tpl',
|
||||
'dispatch_error_tmpl' => APP_PATH . 'common' . DS . 'view' . DS . 'tpl' . DS . 'dispatch_jump.tpl',
|
||||
// +----------------------------------------------------------------------
|
||||
// | 异常及错误设置
|
||||
// +----------------------------------------------------------------------
|
||||
// 异常页面的模板文件
|
||||
'exception_tmpl' => APP_PATH . 'common' . DS . 'view' . DS . 'tpl' . DS . 'think_exception.tpl',
|
||||
//是否启用布局
|
||||
'template' => [
|
||||
'layout_on' => true,
|
||||
'layout_name' => 'public/layout',
|
||||
// 模板路径
|
||||
//'view_path' => __DIR__ . '/view/',
|
||||
// 模板后缀
|
||||
//'view_suffix' => 'phtml',
|
||||
// 模板文件名分隔符
|
||||
//'view_depr' => DS,
|
||||
],
|
||||
'view_replace_str' => [
|
||||
'__PUBLIC__' => '/backend',
|
||||
//'__TEMPLATE__' => '/public/static',
|
||||
'__PREFIX__' => '',
|
||||
],
|
||||
//分页配置
|
||||
'paginate' => [
|
||||
'type' => '\pagination\Bootstrap',
|
||||
'var_page' => 'page',
|
||||
'list_rows' => 15,
|
||||
],
|
||||
'image_upload_limit_size' => 1024*1024*1, //上传图片大小限制
|
||||
'file_upload_limit_size' => 1024 * 1024 * 100, //上传文件大小限制
|
||||
];
|
||||
Reference in New Issue
Block a user