What are the basic Thinkphp configuration items you used?

Source: Internet
Author: User
What are the basic Thinkphp configuration items you used? & Lt ;? Phpdefine (SAMC_ROOT, thinkphp); website directory returnarray (& nbsp; configuration item & gt; Configuration & #20540; & nbsp; APP_GROUP_LIST & nbsp; & gt; Www, Adm Thinkphp basic configuration items. what do you use?

Define ('samc _ root', '/thinkphp'); // Website Directory
Return array (
// 'Config maps '=> 'configuration value'
'App _ GROUP_LIST '=> 'Www, admin', // project grouping settings (you can define multiple items, Www foreground and Admin background)
'Default _ group' => 'WWW ', // DEFAULT GROUP
'URL _ model' => 1, // URL mode
// 'Load _ ext_config' => 'config1, config2 ,...... ', // Load the configuration file under the extension Conf/
// 'Load _ EXT_FILE '=> 'myfunc, myfile', // LOAD the php file under the Extended common/or manually load ("@. myfunc ")
// 'URL _ HTML_SUFFIX '=> 'html', // static suffix
// 'Tmpl _ TEMPLATE_SUFFIX '=> '.html', // template file suffix, suffix .html
// 'App _ FILE_CASE '=> true, // check the file case
// 'Session _ prefix' => 'My, // SESSION PREFIX
'Upload _ root' => SAMC_ROOT. '/UPLOAD /',
'Db _ config' => array ('dbhost' => 'localhost ',
'Dbname' => 'dbname ',
'Dbuser' => 'dbuser ',
'Dbpwd' => 'dbpwd'
), // Configure the database

);


?>

If you have any questions, contact me: 769871707@qq.com 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.