This error is reported every time you prepare to redirect back to another method in the same controller. Why? If a system error occurs, you can select [retry] [Return] or [return to the homepage] [error message] to operate the admin {code...} illegally ...} this error is reported every time you prepare to redirect back to another method in the same controller. Why?
System Error
You can select [retry] [Return] or [return to homepage]
[Error message]
Invalid admin Operation
// Implement the student information deletion function public function delete () {$ room = M ('room '); $ room_id = $ _ GET ['room _ id']; $ room-> where ("room_id = $ room_id")-> delete (); echo "script" alert ('deleted successfully') script "; // there is a bug here $ this-> redirect ("showRoom ");}
Reply content:
This error is reported every time you prepare to redirect back to another method in the same controller. Why?
System Error
You can select [retry] [Return] or [return to homepage]
[Error message]
Invalid admin Operation
// Implement the student information deletion function public function delete () {$ room = M ('room '); $ room_id = $ _ GET ['room _ id']; $ room-> where ("room_id = $ room_id")-> delete (); echo "script" alert ('deleted successfully') script "; // there is a bug here $ this-> redirect ("showRoom ");}
Check whether the showRoom method is in the same controller.
'$ This-> redirect ('new/category ');
`
Controller name and Operation Method
Why not I am prompted to operate the showRoom illegally. It seems that the admin method is targeted to the showRoom, but the admin method is not found.
Your redict only specifies the method, not the Controller