CI framework source code reading --------- Model. php

Source: Internet
Author: User

[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 * // optional/*** 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. * allow the model to access the class 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 */

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.