C方法问题

浏览:299 发布日期:2015/08/20 分类:求助交流
我在HomeController.class.php 中写上了$config = S('config');
        if(empty($config)){
            $config = config();
            S($config);
        }
        C($config);
在IndexController.class.php 中继承了HomeController.class.php
使用 var_dump(C());
能够看到$config中的配置,但是在其他的Controller中却没有$config中的配置,这是为什么呢? C()不是全局的吗?
最佳答案
评论( 相关
后面还有条评论,点击查看>>