1,$config [' base_url '] = ';
Usually this is the root address of your URL, with a trailing slash end, such as http://example.com/, note: You must set this value, of course, if you do not set,CodeIgniter also has its own set of mechanisms to set the default, But this default value is basically not what you want.
$config [' base_url '] = ' http://elder.admin.cc/';
2, $config [' index_page '] = ' index.php ';
The default is index.php files, of course you can also set other files, such as org.php, but if you set up other files, then make sure that the $application_folder in this file is set to the corresponding project path.
$config [' index_page '] = ' business.php ';
With these two configurations, the URL becomes http://elder.admin.cc/business.php
3, $config [' uri_protocol '] = ' request_uri ';
This configuration determines which global server to retrieve this URI string, the default settings Request_uri for most servers, and if the server you are connecting to does not work, then you can try the following options in turn:
'request_uri' Uses $_server['request_uri']
' Query_string ' Uses $_server[' query_string ']
' Path_info ' Uses $_server[' path_info ']
4, $config [' url_suffix '] = ';
This configuration allows you tocodeigniter all URLs automatically generate a suffix, for example: example. Com/index. Php/products/view/ shoesurl_suffix '] = '. html ', So the page looks like this: example com/index. Php/products/view/ shoes . html.
5.$config ['language '] = ' 中文版 ';
This configuration determines which language file set to use, and if you need to configure it in another language, make sure that the language file set is valid.
6, $config [' charset '] = ' UTF-8 ';
Sets the default character set.
7, $config [' permitted_uri_chars '] = ' A-Z 0-9~%.:_\-';
Set your URL to allow the character set, if set to NULL, to allow all characters on behalf of this URL (only madman will do so), it is best not to change this default configuration unless you fully understand what you are doing.
8, $config [' allow_get_array '] = TRUE;
The default CodeIgniter configuration allows you to accept $_get data, but if for some reason you want to disable this feature, just set it to false.
9, $config [' enable_query_strings '] = TRUE;
$config [' controller_trigger '] = ' app ';
$config [' Function_trigger '] = ' act ';
< Span class= "o" > < Span class= "o" > $ config[' enable_query_strings ' configured to True, the following two configurations are further configured on this basis, the URL query string format: < Span class= "o" > example.com/index.php? app =controller&act =function.
< Span class= "NX" >10, $config [ ' log_threshold '] = 0
< Span class= "NX" > You can set a < with a greater than 0 Span class= "NX" > to activate the error log, the threshold and error log types correspond to the following:
0 = no error log, error log not activated
1 = error message (including PHP error)
2 = Debug message
3 = Informational Message
4 = ALL messages
11, $config [' log_path '] = ';
If empty, the default value is application/logs/, and the path ends with a slash. Of course, this path can also be customized.
A,$config [' log_file_extension '] = ';
Sets the extension of the file, or, if empty, the default is PHP, or it can be set to another extension, such as TXT.
13,$config [' log_file_permissions '] = 0644;
Set the log file permissions, this setting only functions in the new log file, in other words, this configuration only for the configuration of the new log file after the modification, important: The configured data must be octal, cannot be a decimal.
14,$config [' log_date_format '] = ' y-m-d h:i:s ';
Sets the date format that is associated with each record in the log file.
CI configuration file---------config.php