Welcome Guest, Not a member yet? Register   Sign In
load is unknown?
#6

[eluser]wiredesignz[/eluser]
@Firenter, A class constructor is not normally required unless you are carrying out some initiation for the class. PHP5 will automatically run the parent constructor in it's absence.

The reason that your application failed and required an empty __constructor is because the index method is considered to be the constructor if your controller class name is also Index.(prior to PHP5.4)

So the parent constructor was never being called and the Loader was never initialized.

This is why the User Guide makes note of reserved words, to avoid this kind of confusion.
(And possibly with some carry over from PHP4 in some cases)


Messages In This Thread
load is unknown? - by El Forum - 09-18-2012, 02:34 AM
load is unknown? - by El Forum - 09-18-2012, 07:09 PM
load is unknown? - by El Forum - 09-18-2012, 07:23 PM
load is unknown? - by El Forum - 09-19-2012, 12:44 AM
load is unknown? - by El Forum - 09-19-2012, 03:51 AM
load is unknown? - by El Forum - 09-19-2012, 04:44 AM
load is unknown? - by El Forum - 09-19-2012, 05:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB