Home >Backend Development >PHP Tutorial > Thinkphp 根本配置项,你用到了哪些

Thinkphp 根本配置项,你用到了哪些

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 13:02:34858browse

Thinkphp 基本配置项,你用到了哪些?

define('SAMC_ROOT', '/thinkphp');//网站目录
return array(
 //'配置项'=>'配置值'
    'APP_GROUP_LIST'  => 'Www,Admin', //项目分组设定(可定义多项,www前台、admin后台)
    'DEFAULT_GROUP'   => 'Www', //默认分组
 'URL_MODEL'           => 1, //URL的模式
 //'LOAD_EXT_CONFIG'  => 'config1,config2,……', //加载扩展Conf/下的配置文件
 //'LOAD_EXT_FILE'  => 'myfunc,myfile',  //加载扩展common/下的php文件 或手动载入load("@.myfunc")
 //'URL_HTML_SUFFIX'     => 'html', //静态后缀
 //'TMPL_TEMPLATE_SUFFIX' => '.html', //模版文件后缀,默认.html
 //'APP_FILE_CASE'       => true, //检查文件大小写
 //'SESSION_PREFIX'      => 'my', //SESSION前缀
 'UPLOAD_ROOT'          => SAMC_ROOT . '/Upload/',
 'DB_CONFIG'    =>array('DBHOST'=>'localhost',
         'DBNAME'=>'dbname',
         'DBUSER'=>'dbuser',
         'DBPWD'=>'dbpwd'
        ),//数据库配置

);


?>

有什么问题可以联系我:769871707@qq.com  或 http://php.ranran1991.com

  
 
 
 
 
 
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn