$ This-> config, $ this> input call in the php-CI framework

Source: Internet
Author: User
Tags codeigniter
In the company's project program, the custom class directly uses $ this-& gt; config-& gt; item () to reference the methods in the system definition class congfig, I would like to ask all the great gods. $ This-& gt; config-& gt; item () at this time, config serves as the attribute of the current class, but no matching $ this-& gt; is found at all; config. The system file Codeigniter. php contains the following statement: $ CFG & amp; load_class (& #39; Config & #39;, & #39; core & #39 ;). But this is in the custom Framework php

In the company's project program, the custom class directly uses $ this-> config-> item () to reference the methods in the system definition class congfig. I would like to ask various great gods. $ This-> config-> item () is the attribute of the current class, but no definition of $ this-> config is found for the current class.
The system file Codeigniter. php contains the following statement: $ CFG = & load_class ('config', 'core '). However, this is where the Config. php file is loaded outside the custom class. Why can I directly use $ this-> config-> item () in the current class (). Hope you can help me solve this problem.

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.