主要有三个目录
1、application目录:用于开发者编写相应的配置以及逻辑处理,开发者只需在这个目录下添加自己需要的开发文件。
2、system目录:框架的系统库,里面包括核心库,类库,辅助类库,数据库等,这些文件,开发者最好不要擅自修改,它是整个框架的龙脉。
3、user_guide:用户手册。
{ ● benchmark: "Benchmark", ● hooks: "Hooks", ● config: "Config", ● log: "Log", ● utf8: "Utf8", ● uri: "URI", ● router: "Router", ● output: "Output", ● security: "Security", ● input: "Input", ● lang: "Lang", ● loader: "Loader" }
每个类库的注释在上图已有解释。
/** * abouter Loader * * @param string|string[] $abouters abouter name(s) * @return object */ public function abouter($abouters = array()) { is_array($abouters) OR $abouters = array($abouters); foreach ($abouters as &$abouter) { $filename = basename($abouter); $filepath = ($filename === $abouter) ? '' : substr($abouter, 0, strlen($abouter) - strlen($filename)); $filename = strtolower(preg_replace('#(_abouter)?(\.php)?$#i', '', $filename)).'_abouter'; $abouter = $filepath.$filename; if (isset($this->_ci_abouters[$abouter])) { continue; } // Is this a abouter extension request? $ext_abouter = config_item('subclass_prefix').$filename; $ext_loaded = FALSE; foreach ($this->_ci_abouter_paths as $path) { if (file_exists($path.'abouters/'.$ext_abouter.'.php')) { include_once($path.'abouters/'.$ext_abouter.'.php'); $ext_loaded = TRUE; } } // If we have loaded extensions - check if the base one is here if ($ext_loaded === TRUE) { $base_abouter = BASEPATH.'abouters/'.$abouter.'.php'; if ( ! file_exists($base_abouter)) { show_error('Unable to load the requested file: abouters/'.$abouter.'.php'); } include_once($base_abouter); $this->_ci_abouters[$abouter] = TRUE; log_message('info', 'abouter loaded: '.$abouter); continue; } // No extensions found ... try loading regular abouters and/or overrides foreach ($this->_ci_abouter_paths as $path) { if (file_exists($path.'abouters/'.$abouter.'.php')) { include_once($path.'abouters/'.$abouter.'.php'); $this->_ci_abouters[$abouter] = TRUE; log_message('info', 'abouter loaded: '.$abouter); break; } } // unable to load the abouter if ( ! isset($this->_ci_abouters[$abouter])) { show_error('Unable to load the requested file: abouters/'.$abouter.'.php'); } } return $this; }
$db['default'] = array( 'dsn' => '', 'hostname' => 'abouthost', 'username' => '', 'password' => '', 'database' => '', 'dbdriver' => 'mysqli', 'dbprefix' => '', 'pconnect' => FALSE, 'db_debug' => (ENVIRONMENT !== 'production'), 'cache_on' => FALSE, 'cachedir' => '', 'char_set' => 'utf8', 'dbcollat' => 'utf8_general_ci', 'swap_pre' => '', 'encrypt' => FALSE, 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), 'save_queries' => TRUE );
主要有三个目录
1、application目录:用于开发者编写相应的配置以及逻辑处理,开发者只需在这个目录下添加自己需要的开发文件。
2、system目录:框架的系统库,里面包括核心库,类库,辅助类库,数据库等,这些文件,开发者最好不要擅自修改,它是整个框架的龙脉。
3、user_guide:用户手册。
每个类库的注释在上图已有解释。
数据库
提供了简单的查询缓存: