- autoload.php (file loaded automatically when system starts: Package, class Library, driver, method Assistant, configuration)
- $autoload [' libraries '] = Array (' database ', ' access ', ' pagination ');//class Library: Database/permission class/Paging class
- $autoload [' drivers '] = Array (' session ');//Driver: Session
- $autoload [' helper '] = array (' URL ', ' file ', ' Cookie ', ' form ', ' array ');//method: URL, file, cookie, form, array
- $autoload [' config '] = array (' app ');//configuration: Project
- config.php Project Public Configuration
- $config [' enable_hooks '] = true;//using hooks
- $config [' log_threshold '] = 0;//logging Level
- $config [' log_path '] = ';//log path
- $config [' cache_path '] = ';//cache path
- $config [' encryption_key '] = ' blog_;//session encryption
- $config [' sess_expiration '] = 3600;//session expiry time
- $config [' sae_output_cache '] = ' kvdb ';//Output class page cache configuration
- constants.php Static variables
- Define (' Page_limit ', 10);//number of strips per page
- 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);
- hooks.php Verify Access $hook [' Pre_system ']= ... ;
- routes.php default route
$route [' default_controller '] = ' site '; $route [' 404_override '] = '; $route FALSE;
Blog System -3.0codeigniter System SAE version configuration application/config/