thinkphp Basic configuration items, what you use

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.