Welcome Guest, Not a member yet? Register   Sign In
Calling parent's constructor within a controller function
#3

[eluser]Matt S.[/eluser]
It should be safe to take out the parent::__construct() call from the other methods, since it's a bit redundant to have them in there. Whenever a class gets initialized, the __construct() method always gets called first. In an MVC pattern, as is CodeIgniter, this will happen on every HTTP request to your controller methods.


Messages In This Thread
Calling parent's constructor within a controller function - by El Forum - 01-18-2012, 04:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB