protected function _initialize(){
parent::initialize();//Inherit the initialization operation in the parent class
define('USER_ID', Session::get('user_id '));
}
In the Base controller, an error is reported after adding parent::initialize();. Why is this?
protected function _initialize(){
parent::_initialize(); //修改这里
define('USER_ID', Session::get('user_id'));
}
Is there a parent class?