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

[eluser]Silviu[/eluser]
I was not aware that such practice is even possible. Proof of how forgiving PHP can be.

Back to your question. My take on the situation:

Calling the constructor there (assuming it works, since the object is already initialized) has the (intended) purpose of re-initializing some of the variables. This should obviously be done by defining another class method and calling it whenever needed.

1. Check out the parent constructor. What happens there?
2. Comment out the parent::__construct() call. Are there pages that are handled by that class that behave differently?
3. Get back with more info after several test Wink


Messages In This Thread
Calling parent's constructor within a controller function - by El Forum - 01-18-2012, 08:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB