Redirect to another controller - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Redirect to another controller (/showthread.php?tid=75102) |
Redirect to another controller - ARAmiss - 12-21-2019 Hello. There is my custom filter: PHP Code: <?php It's work fine: if user is not authorized at some page he will be redirected to page 403. Question: is there any way to do the same without physically redirect? For example: PHP Code: <?php i need something like this: redirect()->controller('403'); or this: return loadController('403'); |