CI框架源码阅览-Model.php

WBOY
发布: 2016-06-13 11:16:38
原创
901 人浏览过

CI框架源码阅读---------Model.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 * * @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 */
登录后复制

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板