debug error2018-01-09 21:45:52
Remove inheritance from the parent class parent and change empty to if(USER_ID==''){code}.............Same as the second one, try it
鸢尾花2018-01-03 17:43:28
Why are you reporting an error again? Mine is not. There is no error message. How did you do it?
沉睡の黑暗2017-09-25 12:10:48
In the class, just use private variables to keep logged in user information,
PHP中文网2017-09-22 18:02:22
$this->uid=Session::get('user_id');
Change the USER_ID below to $this->uid
PHP中文网2017-09-22 17:57:13
It is not recommended to define constants in the class initialization function. You can try moving the define outside the class.