123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <?php
- if (file_exists(GLOBAL_CONF_PATH."config.php")) {
- $_global_config = include GLOBAL_CONF_PATH."config.php";
- } else {
- $_global_config = [];
- }
- $configs = [
-
-
-
-
- 'app_namespace' => 'console',
-
- 'app_status' => APP_DEBUG ? 'debug' : 'release',
-
- 'app_multi_module' => true,
-
- 'auto_bind_module' => false,
-
- 'root_namespace' => ['cmf' => CMF_PATH, 'huo' => HUO_PATH, 'huolib' => HUOLIB_PATH,
- 'huomp' => HUOMP_PATH, 'huorisk' => HUORISK_PATH,
- 'plugins' => PLUGINS_PATH],
-
- 'extra_file_list' => [CMF_PATH.'common'.EXT, CMF_PATH.'view_common'.EXT, HUO_PATH.'common'.EXT,
- THINK_PATH.'helper'.EXT],
-
- 'default_return_type' => 'html',
-
- 'default_ajax_return' => 'json',
-
- 'default_jsonp_handler' => 'jsonpReturn',
-
- 'var_jsonp_handler' => 'callback',
-
- 'default_timezone' => 'PRC',
-
- 'lang_switch_on' => true,
-
- 'default_filter' => 'htmlspecialchars',
-
- 'default_lang' => 'en-us',
-
- 'header_accept_lang' => ['en-us', 'zh-cn', 'ar'],
-
- 'class_suffix' => false,
-
- 'controller_suffix' => false,
-
-
-
-
- 'default_module' => 'Index',
-
- 'deny_module_list' => ['common'],
-
- 'default_controller' => 'Index',
-
- 'default_action' => 'index',
-
- 'default_validate' => '',
-
- 'empty_controller' => 'Error',
-
- 'controller_auto_search' => true,
-
-
-
- 'pathinfo_depr' => '/',
-
- 'url_html_suffix' => 'html',
-
- 'url_common_param' => false,
-
- 'url_param_type' => 0,
-
- 'url_route_on' => true,
-
- 'route_config_file' => ['route'],
-
- 'url_route_must' => false,
-
- 'url_domain_deploy' => false,
-
- 'url_domain_root' => '',
-
- 'url_convert' => true,
-
- 'url_controller_layer' => 'controller',
-
- 'var_method' => '_method',
-
-
-
- 'template' => [
-
- 'type' => 'Think',
-
- 'view_base' => '',
-
- 'view_path' => '',
-
- 'view_suffix' => 'html',
-
- 'view_depr' => DS,
-
- 'tpl_begin' => '{',
-
- 'tpl_end' => '}',
-
- 'taglib_begin' => '<',
-
- 'taglib_end' => '>',
- 'taglib_build_in' => 'cmf\lib\taglib\Cmf,cx',
- 'tpl_cache' => APP_DEBUG ? false : true,
- 'tpl_deny_php' => false
- ],
-
- 'view_replace_str' => [],
-
- 'dispatch_success_tmpl' => THINK_PATH.'tpl'.DS.'dispatch_jump.tpl',
- 'dispatch_error_tmpl' => THINK_PATH.'tpl'.DS.'dispatch_jump.tpl',
-
-
-
-
- 'exception_tmpl' => THINK_PATH.'tpl'.DS.'think_exception.tpl',
-
- 'error_message' => '页面错误!请稍后再试~',
-
- 'show_error_msg' => false,
-
- 'exception_handle' => '',
-
-
-
- 'trace' => [
-
- 'type' => 'Html',
- ],
- ];
- return array_merge($_global_config, $configs);
|