Underneath the ornate split line is a concrete implementation that requires modification and can be configured: cong.php [PHP] ' Config value '//Because the open URL is re-rewritten or not rewritten, can be accessed through the original path//If you want to turn on rewrite mode, you need to do the following//1.query server has opened Apache rewrite module// LoadModule rewrite_module modules/mod_rewrite.so//2. In the statistics directory with the main entry file, create a new. htaccess (Vi:save. htaccess; Notepad: ". htaccess" )//If Select mode 2 (rewrite) will increase the consumption of the server ' Url_model ' =>1, ' Url_patninfo_model ' =>2,//pathinfo contains two types of//1 common mode: Plus M and a: the order relationship can change//http://localhost/mythinkphp/admin.php/m/index/a/index//pass-through value//http://localhost/mythinkphp/ Admin.php/m/index/a/index/username/zhangsan/password/password//2 Intelligent Identification Module operation (the default mode is smart identification)//http://localhost/ Mythinkphp/admin.php/index/index//Transmit value//http://localhost/mythinkphp/admin.php/index/index/username/zhangsan/ Password/password//Modify URL delimiter//' url_pathinfo_depr ' = '-',//modify template left and right delimiters ' tmpl_l_delim ' = ' ',//******************************** very gorgeous split line **************************************//Open debug mode//1. Simulate Linux systems to identify case/ /2. The case of the method name is related to the template file case ' App_debug ' =>true,//can customize the page's trace information//configuration file path trace information configuration under THINKPHP/TPL pageTrace.tpl.php// Custom mode://' Tmpl_trace_file ' =>app_path. ' /public/trace.php ',//or custom trace.php page into the current Conf folder//The location of the default debug file://thinkphp/common/debug.php//Do not cache database fields; Re-modify can be runtim/data the following file to delete//' Db_fields_cache ' and false,//can be customized debug.php into the current Conf folder//First App_ DEBUG is set to False then add the following parameters//' App_debug ' =>false,//show the time required to run this page//' Show_run_time ' =>true,//Show verbose run time (based on Show_run _time)//' Show_adv_time ' =>true,//Show database operations (based on Show_run_time)//' Show_db_times ' =>true,//Show cache operation Count (based on Show_ run_time)//' Show_cache_times ' =>true,//display memory overhead (based on show_run_time)//' Show_use_mem ' =>true,//Set template//' Default_ THEME ' = ' + ' default ',//log Processing Logs class: lib/think/core/log.class.php//Open log ' Log_record ' =>true,//Log processing log class: lib/think/ There are processing levels in the core/log.class.php, optionally adding ' Log_record_level ' =>array (' Emerg ',' ALERT ');?> in action: [PHP]//Model DEBUG (Action statement executed in database) $User =new model (' User '); $User->find (1); Gets the last executed SQL Echo $User->getlastsql (); Usage: Log information, log level, log type, specific information log::write ("AA", $level, $type, $file); The record method writes information to memory
http://www.bkjia.com/PHPjc/477803.html www.bkjia.com true http://www.bkjia.com/PHPjc/477803.html techarticle underneath the gorgeous split line is a specific implementation that needs to be modified and configurable: cong.php [PHP]? PHP return Array (//change mode is best to remove some ~app.php and ~runtime.php/match ...