CI3 to CI4 Migrations (__construct) |
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. |
Messages In This Thread |
CI3 to CI4 Migrations (__construct) - by bartMommens - 04-16-2019, 06:34 AM
RE: CI3 to CI4 Migrations (__construct) - by kilishan - 04-16-2019, 06:42 AM
RE: CI3 to CI4 Migrations (__construct) - by bartMommens - 05-07-2019, 06:27 AM
RE: CI3 to CI4 Migrations (__construct) - by kilishan - 05-07-2019, 06:45 AM
RE: CI3 to CI4 Migrations (__construct) - by Avega Soft - 05-07-2019, 09:02 PM
RE: CI3 to CI4 Migrations (__construct) - by kilishan - 05-08-2019, 07:05 AM
RE: CI3 to CI4 Migrations (__construct) - by Avega Soft - 05-10-2019, 12:12 AM
RE: CI3 to CI4 Migrations (__construct) - by ysarsilmaz - 07-20-2020, 02:19 AM
RE: CI3 to CI4 Migrations (__construct) - by bartMommens - 04-16-2019, 06:55 AM
|