Teacher, please see how to solve this problem?
王翼
王翼 2017-09-22 14:45:26
0
8
1500

123.png

王翼
王翼

reply all(5)
debug error

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,

Ty80

$this->uid=Session::get('user_id');

Change the USER_ID below to $this->uid

  • reply USER_ID is a custom constant, there is no point in changing it
    鸢尾花 author 2018-01-03 19:00:43
Ty80

It is not recommended to define constants in the class initialization function. You can try moving the define outside the class.

  • reply Move outside the User class and pass smoothly! Thank you.
    vine author 2017-10-22 23:41:43
  • reply How to move it
    鸢尾花 author 2018-01-03 19:01:46
  • reply Can't solve it
    . author 2018-05-02 13:56:27
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template