Home >Backend Development >PHP Tutorial >CI framework source code reading---------Model.php_PHP tutorial

CI framework source code reading---------Model.php_PHP tutorial

WBOY
WBOYOriginal
2016-07-14 10:09:141023browse

[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.
* Allows the model to access classes loaded by the CI controller using the same method as the controller
* @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 */  
 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/477663.htmlTechArticle[php] ?php if ( ! defined(BASEPATH)) exit(No direct script access allowed); /** * CodeIgniter * * An open source application development framework for PHP 5.1.6 or newer * * @packag...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn