Welcome Guest, Not a member yet? Register   Sign In
Issue with the controller arguement

Correct - you do not need to even think about the initController method. That's called by CodeIgniter when the Controller is instantiated, and just frees you from having to worry about constructor arguments whenever you need to do something in your controller's constructor.

And the "redirect issue" in the controller constructor isn't able to be fixed as you cannot return another object from a class constructor. You can always use filters (once investigated and fixed) or the _remap method in the controller.

Messages In This Thread
Issue with the controller arguement - by scalla - 07-10-2018, 05:42 PM
RE: Issue with the controller arguement - by kilishan - 07-12-2018, 06:32 AM

Theme © iAndrew 2016 - Forum software by © MyBB