Configuration file for thinkphp

Source: Internet
Author: User

Return Array (
' Config item ' = ' config value '

' Tmpl_l_delim ' = ' <{',//template engine normal tag start tag
' Tmpl_r_delim ' = '}> ',//template engine plain tag end tag


Database configuration
' Db_type ' = ' mysql ',//database type
' db_host ' = ' localhost ',//database address
' Db_port ' = ' 3306 ',//Database port
' db_name ' = ' black ',//database name
' Db_user ' = ' root ',//Database login name
' db_pwd ' = ' 123 ',//Database password
' Db_prefix ' = ', '/' table prefix


Automatic load Configuration
' App_autoload_path ' = ' @.common ',//auto-load the class under the Lib/common folder (class name. class.php)
"Load_ext_file" + "SQL",//automatically load the sql.php in Home/common, manually load load ("@.sql"), corresponding to the project's public files
Import ("Home.Action.UserAction");=> means the lib/action/useraction.class.php below the Home project is imported


Error message
' App_status ' = ' debug ',//error message
' Show_page_trace ' = true,//Display page TRACE information


Pseudo-Static
' url_router_on ' = = true,//Turn on routing
' Url_html_suffix ' = ' HTML ',//pseudo static suffix
' Url_model ' = 2,//This mode removes index.php


' Var_filters ' = ' htmlspecialchars ',//global filtering of system variables, filtering for get post system variables


' App_group_list ' = ' user,admin ',//Project grouping settings
' Default_group ' = ' User ',//default grouping


' Load_ext_config ' = ' user,db ',//load extension profile, will automatically load configuration files conf/user.php and conf/db.php under the project configuration directory.

);

Configuration file for thinkphp

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.