CI框架源码阅读---------Model.php
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
/**
* CodeIgniter Model Class
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/libraries/config.html
*/
class CI_Model {
/**
* Constructor
*
* @access public
*/
function __construct()
{
log_message('debug', "Model Class Initialized");
}
/**
* __get
*
* Allows models to access CI's loaded classes using the same
* syntax as controllers.
* 允许模型使用与控制器相同的方法去访问CI控制器载入的类
* @param string
* @access private
*/
function __get($key)
{
$CI =& get_instance();
return $CI->$key;
}
}
// END Model Class
/* End of file Model.php */
/* Location: ./system/core/Model.php */
推荐阅读
-
CI框架源码阅读---------Model.php
-
CI框架源码翻阅-Input.php
-
CI框架源码解读之利用Hook.php文件完成功能扩展的方法
-
CI框架开发新浪微博登录接口源码完整版_PHP教程
-
CI框架源码解读之利用Hook.php文件完成功能扩展的方法
-
CI框架源码解读之URI.php中_fetch_uri_string()函数用法分析
-
CI框架装载器Loader.php源码分析,ciloader.php_PHP教程
-
ci - 如何更快的深入了解一个PHP框架的源码
-
CI框架源码阅读笔记5 基准测试 BenchMark.php,cibenchmark.php
-
CI框架源码阅读---------Output.php