Redirect Not Working CI4 |
err, if anyone needs a quick fix for a redirect I just use this:
header('Location: /login'); exit(); it works everywhere so far, I actually have a check login function in my base controller where this is working from. Beware though, it seems an exit() will prevent any of your "after stuff happens" events or filters from working. Update: also a check login in base controller doesn't seem like a good idea anymore, so I made it as a public static function in a library
You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.
|
Welcome Guest, Not a member yet? Register Sign In |