标签:用户手册 内存 com 文本文件 创建 test php框架 post float
主要有三个目录
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" }
每个类库的注释在上图已有解释。
/** * Helper Loader * * @param string|string[] $helpers Helper name(s) * @return object */ public function helper($helpers = array()) { is_array($helpers) OR $helpers = array($helpers); foreach ($helpers as &$helper) { $filename = basename($helper); $filepath = ($filename === $helper) ? ‘‘ : substr($helper, 0, strlen($helper) - strlen($filename)); $filename = strtolower(preg_replace(‘#(_helper)?(\.php)?$#i‘, ‘‘, $filename)).‘_helper‘; $helper = $filepath.$filename; if (isset($this->_ci_helpers[$helper])) { continue; } // Is this a helper extension request? $ext_helper = config_item(‘subclass_prefix‘).$filename; $ext_loaded = FALSE; foreach ($this->_ci_helper_paths as $path) { if (file_exists($path.‘helpers/‘.$ext_helper.‘.php‘)) { include_once($path.‘helpers/‘.$ext_helper.‘.php‘); $ext_loaded = TRUE; } } // If we have loaded extensions - check if the base one is here if ($ext_loaded === TRUE) { $base_helper = BASEPATH.‘helpers/‘.$helper.‘.php‘; if ( ! file_exists($base_helper)) { show_error(‘Unable to load the requested file: helpers/‘.$helper.‘.php‘); } include_once($base_helper); $this->_ci_helpers[$helper] = TRUE; log_message(‘info‘, ‘Helper loaded: ‘.$helper); continue; } // No extensions found ... try loading regular helpers and/or overrides foreach ($this->_ci_helper_paths as $path) { if (file_exists($path.‘helpers/‘.$helper.‘.php‘)) { include_once($path.‘helpers/‘.$helper.‘.php‘); $this->_ci_helpers[$helper] = TRUE; log_message(‘info‘, ‘Helper loaded: ‘.$helper); break; } } // unable to load the helper if ( ! isset($this->_ci_helpers[$helper])) { show_error(‘Unable to load the requested file: helpers/‘.$helper.‘.php‘); } } return $this; }
$db[‘default‘] = array( ‘dsn‘ => ‘‘, ‘hostname‘ => ‘localhost‘, ‘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 );
Key | Description | Default |
benchmarks | 在各个计时点花费的时间以及总时间 TRUE | |
config | CodeIgniter 配置变量 TRUE | |
controller_info | 被请求的控制器类和调用的方法 TRUE | |
get | 请求中的所有 GET 数据 TRUE | |
http_headers | 本次请求的 HTTP 头部 TRUE | |
memory_usage | 本次请求消耗的内存(单位字节) TRUE | |
post | 请求中的所有 POST 数据 TRUE | |
queries | 列出所有执行的数据库查询,以及执行时间 TRUE | |
uri_string | 本次请求的 URI TRUE | |
session_data | 当前会话中存储的数据 TRUE | |
query_toggle_count | 指定显示多少个数据库查询,剩下的则默认折叠起来 25 |
标签:用户手册 内存 com 文本文件 创建 test php框架 post float
原文地址:http://www.cnblogs.com/xiaoxiaoqingyi/p/6901654.html