CI framework source code reading --------- Controller. php
Source: Internet
Author: User
[Php] & lt ;? Phpif (! Defined (& amp; #39; BASEPATH & amp; #39;) exit (& amp; #39; Nodirectscriptaccessallowed & amp; #39 ;); /*** CodeIgniter *** Anopensourceapplicatio [php] $ Class) {$ this-> $ var = & load_class ($ class);} // load the Loader component to the Super Controller. this component is a good helper of the super controller, // you often use $ this-> load-> xxx () to load something. // this load is generated when the controller is constructed. $ This-> load = & load_class ('loader ', 'core'); // initialize the Loader component. php $ this-> load-> initialize (); www.2cto.com log_message ('debug', "Controller Class Initialized");} public static function & get_instance () {return self :: $ instance ;}// END Controller class/* End of file Controller. php * // * Location :. /system/core/Controller. php */
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