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?
酱油哎呦2017-11-09 17:03:57
protected function _initialize(){
parent::_initialize(); //修改这里
define('USER_ID', Session::get('user_id'));
}