用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1143|回复: 2
收起左侧

[讨论/交流] ci 基类CI_Controller

[复制链接]
发表于 2016-7-21 15:26:04 | 显示全部楼层 |阅读模式
public function __construct()
        {
                self:instance =& $this;

                $this->load ='a';
               
        }
为什么=& $this 要带& 大神求教
发表于 2016-7-25 16:59:31 | 显示全部楼层
取地址符   将$this的值赋值给self::getInstance

本版积分规则