First of all, one of the lines of code in my index.php at the beginning was return $this -> fetch(); because this way I can proceed normally Later operations
When I got here, I found that it didn’t work. After copying it directly into user.php, the page would not open. At this time, I changed it to return $this -> view ->fetch();
This will open it. I don’t know if you have this kind of problem. Anyway, this is how I solved it
class There is no change there, here is the login method to access the user controller
Let me tell you how I solved it
First of all, one of the lines of code in my index.php at the beginning was return $this -> fetch(); because this way I can proceed normally Later operations
When I got here, I found that it didn’t work. After copying it directly into user.php, the page would not open. At this time, I changed it to return $this -> view ->fetch();
This will open it. I don’t know if you have this kind of problem. Anyway, this is how I solved it
I can open the login page after changing the webpage to www.edu.com/index.php/index/user/login
I also have this problem. It has been stuck on me for 2 days. Has it been solved?
Open DEBUG to see error details