Home > Backend Development > PHP Tutorial > php-CI框架中$this->config,$this>input的调用问题

php-CI框架中$this->config,$this>input的调用问题

WBOY
Release: 2016-06-02 11:32:01
Original
1707 people have browsed it

框架php

在公司的项目程序里面,自定义类里面直接$this->config->item()引用系统定义类congfig里面的方法,想问一下各路大神。$this->config->item()这时的config是作为当前类的属性,但是根本没有找到当前类有对$this->config的定义。
系统文件Codeigniter.php里面有这样一个语句:$CFG =& load_class('Config', 'core')。 但是这是在自定义类外面加载Config.php文件的啊,为什么在当前类里面可以直接使用$this->config->item()。希望大神能帮我解答一下。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template