thinkphp 完整配置config.php
ThinkPHP的系统配置都采用数组形式,配置文件地址:Bin/Conf/config.php
CHECK_FILE_CASE -- windows环境下面的严格检查大小写.
- 'APP_DEBUG' => false,
- 'APP_DOMAIN_DEPLOY' => false,
- 'APP_PLUGIN_ON' => false,
- 'APP_FILE_CASE' => false,
- 'APP_GROUP_DEPR' => '.',
- 'APP_GROUP_LIST' => '',
- 'APP_AUTOLOAD_REG' => false,
- 'APP_AUTOLOAD_PATH' => 'Think.Util.',
- 'APP_CONFIG_LIST' => array('taglibs','routes','tags','htmls','modules','actions'),
-
- 'COOKIE_EXPIRE' => 3600,
- 'COOKIE_DOMAIN' => '',
- 'COOKIE_PATH' => '/',
- 'COOKIE_PREFIX' => '',
-
- 'DEFAULT_APP' => '@',
- 'DEFAULT_GROUP' => 'Home',
- 'DEFAULT_MODULE' => 'Index',
- 'DEFAULT_ACTION' => 'index',
- 'DEFAULT_CHARSET' => 'utf-8',
- 'DEFAULT_TIMEZONE' => 'PRC',
- 'DEFAULT_AJAX_RETURN' => 'JSON',
- 'DEFAULT_THEME' => 'default',
- 'DEFAULT_LANG' => 'zh-cn',
-
- 'DB_TYPE' => 'mysql',
- 'DB_HOST' => 'localhost',
- 'DB_NAME' => '',
- 'DB_USER' => 'root',
- 'DB_PWD' => '',
- 'DB_PORT' => 3306,
- 'DB_PREFIX' => 'think_',
- 'DB_SUFFIX' => '',
- 'DB_FIELDTYPE_CHECK' => false,
- 'DB_FIELDS_CACHE' => true,
- 'DB_CHARSET' => 'utf8',
- 'DB_DEPLOY_TYPE' => 0,
- 'DB_RW_SEPARATE' => false,
-
- 'DATA_CACHE_TIME' => -1,
- 'DATA_CACHE_COMPRESS' => false,
- 'DATA_CACHE_CHECK' => false,
- 'DATA_CACHE_TYPE' => 'File',
- 'DATA_CACHE_PATH' => TEMP_PATH,
- 'DATA_CACHE_SUBDIR' => false,
- 'DATA_PATH_LEVEL' => 1,
-
- 'ERROR_MESSAGE' => '您浏览的页面暂时发生了错误!请稍后再试~',
- 'ERROR_PAGE' => '',
-
- 'HTML_CACHE_ON' => false,
- 'HTML_CACHE_TIME' => 60,
- 'HTML_READ_TYPE' => 0,
- 'HTML_FILE_SUFFIX' => '.shtml',
-
- 'LANG_SWITCH_ON' => false,
- 'LANG_AUTO_DETECT' => true,
-
- 'LOG_RECORD' => false,
- 'LOG_FILE_SIZE' => 2097152,
- 'LOG_RECORD_LEVEL' => array('EMERG','ALERT','CRIT','ERR'),
-
- 'PAGE_ROLLPAGE' => 5,
- 'PAGE_LISTROWS' => 20,
-
- 'SESSION_AUTO_START' => true,
-
-
-
-
-
- 'SHOW_RUN_TIME' => false,
- 'SHOW_ADV_TIME' => false,
- 'SHOW_DB_TIMES' => false,
- 'SHOW_CACHE_TIMES' => false,
- 'SHOW_USE_MEM' => false,
- 'SHOW_PAGE_TRACE' => false,
- 'SHOW_ERROR_MSG' => true,
-
- 'TMPL_ENGINE_TYPE' => 'Think',
- 'TMPL_DETECT_THEME' => false,
- 'TMPL_TEMPLATE_SUFFIX' => '.html',
- 'TMPL_CACHFILE_SUFFIX' => '.php',
- 'TMPL_DENY_FUNC_LIST' => 'echo,exit',
- 'TMPL_PARSE_STRING' => '',
- 'TMPL_L_DELIM' => '{',
- 'TMPL_R_DELIM' => '}',
- 'TMPL_VAR_IDENTIFY' => 'array',
- 'TMPL_STRIP_SPACE' => false,
- 'TMPL_CACHE_ON' => true,
- 'TMPL_CACHE_TIME' => -1,
- 'TMPL_ACTION_ERROR' => 'Public:success',
- 'TMPL_ACTION_SUCCESS' => 'Public:success',
- 'TMPL_TRACE_FILE' => THINK_PATH.'/Tpl/PageTrace.tpl.php',
- 'TMPL_EXCEPTION_FILE' => THINK_PATH.'/Tpl/ThinkException.tpl.php',
- 'TMPL_FILE_DEPR'=>'/',
-
- 'TAGLIB_BEGIN' => '<',
- 'TAGLIB_END' => '>',
- 'TAGLIB_LOAD' => true,
- 'TAGLIB_BUILD_IN' => 'cx',
- 'TAGLIB_PRE_LOAD' => '',
- 'TAG_NESTED_LEVEL' => 3,
- 'TAG_EXTEND_PARSE' => '',
-
- 'TOKEN_ON' => true,
- 'TOKEN_NAME' => '__hash__',
- 'TOKEN_TYPE' => 'md5',
-
- 'URL_CASE_INSENSITIVE' => false,
- 'URL_ROUTER_ON' => false,
- 'URL_DISPATCH_ON' => true,
- 'URL_MODEL' => 1,
-
- 'URL_PATHINFO_MODEL' => 2,
-
-
-
- 'URL_PATHINFO_DEPR' => '/',
- 'URL_HTML_SUFFIX' => '',
-
- 'VAR_GROUP' => 'g',
- 'VAR_MODULE' => 'm',
- 'VAR_ACTION' => 'a',
- 'VAR_ROUTER' => 'r',
- 'VAR_PAGE' => 'p',
- 'VAR_TEMPLATE' => 't',
- 'VAR_LANGUAGE' => 'l',
- 'VAR_AJAX_SUBMIT' => 'ajax',
- 'VAR_PATHINFO' => 's',
|