【发布时间】:2010-05-29 18:57:21
【问题描述】:
我尝试使用public function __construct() { },但出现错误
ErrorException [严格]:创建 来自空值的默认对象。
这背后的原因是我使用了一个仅对登录用户进行保护的控制器,我不想在控制器中的每个操作中都调用$this->protect();。
因此我尝试使用调用$this->protect();的构造函数
【问题讨论】:
标签: php authentication constructor kohana-3