Remove inheritance from the parent class parent and change empty to if(USER_ID==''){code}.............Same as the second one, try it
Why are you reporting an error again? Mine is not. There is no error message. How did you do it?
In the class, just use private variables to keep logged in user information,
$this->uid=Session::get('user_id');
Change the USER_ID below to $this->uid
It is not recommended to define constants in the class initialization function. You can try moving the define outside the class.
Remove inheritance from the parent class parent and change empty to if(USER_ID==''){code}.............Same as the second one, try it
Why are you reporting an error again? Mine is not. There is no error message. How did you do it?
In the class, just use private variables to keep logged in user information,
$this->uid=Session::get('user_id');
Change the USER_ID below to $this->uid
It is not recommended to define constants in the class initialization function. You can try moving the define outside the class.