Welcome Guest, Not a member yet? Register   Sign In
New to programming and trying to understand it all.
#2

[eluser]xwero[/eluser]
The function is a constructor which means it gets executed when the class is called.

The parent::Controller() line is to inherit the constructor of the Controller class. This is needed if you want to add things to the constructor of your extended class otherwise you overwrite the Controller class constructor and you are going to end up with errors.

It is explained in the user guide but it isn't that clear.


Messages In This Thread
New to programming and trying to understand it all. - by El Forum - 05-31-2008, 11:22 PM
New to programming and trying to understand it all. - by El Forum - 06-01-2008, 12:01 AM
New to programming and trying to understand it all. - by El Forum - 06-01-2008, 12:37 AM
New to programming and trying to understand it all. - by El Forum - 06-01-2008, 12:54 AM
New to programming and trying to understand it all. - by El Forum - 06-01-2008, 09:09 AM
New to programming and trying to understand it all. - by El Forum - 06-03-2008, 09:18 PM
New to programming and trying to understand it all. - by El Forum - 06-03-2008, 10:19 PM
New to programming and trying to understand it all. - by El Forum - 06-03-2008, 10:47 PM
New to programming and trying to understand it all. - by El Forum - 06-03-2008, 11:20 PM
New to programming and trying to understand it all. - by El Forum - 06-04-2008, 07:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB