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

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.
Reply


Messages In This Thread
RE: CI3 to CI4 Migrations (__construct) - by kilishan - 04-16-2019, 06:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB