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