CodeIgniter Basic Configuration Details _php Tutorial

Source: Internet
Author: User
Tags php server codeigniter
$config [' base_url '] = "http://www.jb51.net/". The URL of your website, CodeIgniter will be based on this URL to generate links, form address and so on.
$config [' index_page '] = "index.php" codeigniter the index.php file name under the root directory, CodeIgniter uses it to generate the link address. If you use a hidden index.php URL, set it to an empty string: $config [' index_page '] = "".
$config [' uri_protocol '] = "Auto" CodeIgniter the format used to generate the URL, set to "Auto" for automatic probing. If the link does not work correctly, you can try the following values: Path_info, Query_string, Request_uri, Orig_path_info.
$config [' url_suffix '] = "". CodeIgniter the URL suffix used when generating the link, if you want to implement pseudo-static, you can set the $config [' url_suffix ' = '. html '.
$config [' language '] = "中文版". CodeIgniter the default language used by the program
$config [' charset '] = "UTF-8". CodeIgniter the character set used by the program by default
$config [' enable_hooks '] = FALSE. Whether the hook is enabled or not, the hook function allows you to change or increase the core operating function of the system without modifying the system core file.
$config [' subclass_prefix '] = ' my_ '. To set the class name prefix to use when extending the CodeIgniter class library
$config [' permitted_uri_chars '] = ' A-Z 0-9~%.:_\-'. Sets the allowable characters in the CodeIgniter URL, which is a regular expression. A warning is given when a visitor tries to access a CodeIgniter URL that contains other characters. You should try to limit the characters used by the CodeIgniter URL to improve security and effectively filter injection attacks. If set to NULL, all characters are allowed, it is strongly recommended that you do not do so.
$config [' enable_query_strings '] = FALSE. The CodeIgniter URL uses a segmented URL by default, and this option also allows CodeIgniter to open the query string as a URL. You can use query strings to pass the controllers and functions that you want to access. For example: Index.php?c=controller&m=method. CodeIgniter the URL of the fragment is used by default, the URL of the query string is not supported by many attributes.
$config [' controller_trigger '] = ' C '. CodeIgniter the value corresponding to this option in the query string as the name of the CodeIgniter controller.
$config [' function_trigger '] = ' m '. CodeIgniter the value corresponding to this option in the query string as the name of the CodeIgniter controller method
$config [' log_threshold '] = 0. Enable the error log to set which types of errors are logged.
0 = Turn off error logging
1 = Log error message
2 = record Debug information
3 = Record notification information
4 = record All information
$config [' log_path '] = "". If you do not want to use the default error logging directory configuration (system/logs/), you can set up the full server directory.
$config [' log_date_format '] = ' y-m-d h:i:s '. CodeIgniter error Log Time format
$config [' cache_path '] = "". If you do not want to use the default cache directory (system/cache/) to store the cache, you can set the full server directory
$config [' encryption_key '] = "". Keys used by CodeIgniter
$config [' global_xss_filtering '] = FALSE. Whether to automatically filter cross-scripting attacks on input data (GET, POST)
$config [' compress_output '] = FALSE. Enable gzip compression to achieve the fastest page load speed
$config [' time_reference '] = ' local '. Set time format: "Local", "GMT"
$config [' rewrite_short_tags '] = FALSE. If you want to use a short tag, but the PHP server is not supported, CodeIgniter can support this feature by overriding the short tag.
$config [' proxy_ips '] = "". If a visitor visits your website through a proxy server, you must set up a proxy IP list to identify the real IP of the visitor.

http://www.bkjia.com/PHPjc/825118.html www.bkjia.com true http://www.bkjia.com/PHPjc/825118.html techarticle $config [' base_url '] = "http://www.jb51.net/". The URL of your website, CodeIgniter will be based on this URL to generate links, form address and so on. $config [' index_page '] = "index.php" Codeig ...

  • Related Article

    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.