Welcome Guest, Not a member yet? Register   Sign In
CI3 to CI4 Migrations (__construct)

(04-16-2019, 06:42 AM)kilishan Wrote: You can definitely use the constructor for almost anything you need to. It was purposefully left blank so framework code didn't get in the way of what you needed.

However, redirects no longer work from within constructors. Instead, you should look at controller filters for permission checks and the like.

If I am right understanding the Controller Filters starting working before apps controllers and check url's or form action type as hooks in CI3 ?

Messages In This Thread
RE: CI3 to CI4 Migrations (__construct) - by Avega Soft - 05-07-2019, 09:02 PM

Theme © iAndrew 2016 - Forum software by © MyBB