TP5 detects login jump in behavior class, and redirect reports an error

check whether to log in in the check class file under the behavior file under the module, and then jump to the business, use the redirect prompt to report an error, and find the answer

Call to undefined method app\admin\behavior\CheckBehavior::redirect()
Mar.03,2021

there is a problem with your command space. AppadminbehaviorCheckBehavior, is glued together and the slash is gone.


have you solved this problem?


you can use redirect functions instead of methods


with redirect () methods or direct header,Behavior classes without redirect class methods


this error obviously means that your method is not defined. Take a look at the parameter format of this method and check whether it is wrong.

clipboard.png

The

error does not have this' redirect' method'. Do you have it in this class? you do not inherit it. Of course, you cannot find this method. You have never used TP, but you can look for it through this train of thought

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7ad8a2-1e145.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7ad8a2-1e145.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?