thinkphp Basic configuration items, what do you use?
Define (' Samc_root ', '/thinkphp ');//web Site Directory
Return Array (
' Config item ' = ' config value '
' App_group_list ' + ' www,admin ',//project group setting (can define multiple items, WWW foreground, Admin backstage)
' Default_group ' = ' Www ',//default grouping
' Url_model ' = 1,//url mode
' Load_ext_config ' = ' config1,config2,...... ',//load the configuration file under extension conf/
' Load_ext_file ' = ' myfunc,myfile ',//load the php file under extension common/or manually load load ("@.myfunc")
' Url_html_suffix ' = ' HTML ',//static suffix
' Tmpl_template_suffix ' = '. html ',//template file suffix, default. html
' App_file_case ' = true,//check file case
' Session_prefix ' = ' my ',//session prefix
' Upload_root ' = samc_root. '/upload/',
' Db_config ' =>array (' dbhost ' = ' localhost ',
' DBNAME ' = ' DBNAME ',
' DBUSER ' = ' DBUSER ',
' Dbpwd ' = ' dbpwd '
),//Database configuration
);
?>
If you have any questions, you can contact me: [email protected] or http://php.ranran1991.com