Blog System -3.0codeigniter System SAE version configuration application/config/

Source: Internet
Author: User

  1. autoload.php (file loaded automatically when system starts: Package, class Library, driver, method Assistant, configuration)
      1. $autoload [' libraries '] = Array (' database ', ' access ', ' pagination ');//class Library: Database/permission class/Paging class
      2. $autoload [' drivers '] = Array (' session ');//Driver: Session
      3. $autoload [' helper '] = array (' URL ', ' file ', ' Cookie ', ' form ', ' array ');//method: URL, file, cookie, form, array
      4. $autoload [' config '] = array (' app ');//configuration: Project
  2. config.php Project Public Configuration
      1. $config [' enable_hooks '] = true;//using hooks
      2. $config [' log_threshold '] = 0;//logging Level
      3. $config [' log_path '] = ';//log path
      4. $config [' cache_path '] = ';//cache path
      5. $config [' encryption_key '] = ' blog_;//session encryption
      6. $config [' sess_expiration '] = 3600;//session expiry time
      7. $config [' sae_output_cache '] = ' kvdb ';//Output class page cache configuration
  3. constants.php Static variables
      1. Define (' Page_limit ', 10);//number of strips per page
  4. database.php SAE Database
    $active _group= ' Default ';$query _builder=TRUE;$db[' Default '] =Array(    ' DSN ' = ' = ', ' hostname ' + sae_mysql_host_m, ' hostname ' + sae_mysql_host_s, ' username ' = Sae_mys Ql_user, ' Password ' and sae_mysql_pass, ' database ' = sae_mysql_db, ' port ' = Sae_mysql_port, ' dbdrive R ' = ' mysqli ', ' dbprefix ' = ' ', ' pconnect ' =FALSE, ' db_debug ' =TRUE, ' cache_on ' =FALSE, ' cachedir ' = ', ' char_set ' = ' utf8 ', ' dbcollat ' = ' utf8_general_ci ', ' swap_pre ' = ', ' A Utoinit ' =TRUE, ' encrypt ' =FALSE, ' compress ' =FALSE, ' Stricton ' =FALSE, ' failover ' =Array(), ' save_queries ' =TRUE);
  5. hooks.php Verify Access $hook [' Pre_system ']= ... ;
  6. routes.php default route
    $route [' default_controller '] = ' site '; $route [' 404_override '] = '; $route FALSE;

Blog System -3.0codeigniter System SAE version configuration application/config/

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.