Welcome Guest, Not a member yet? Register   Sign In
Problem with extended Model
#3

[eluser]TheFuzzy0ne[/eluser]
In order to stay compatible with PHP 4, CI constructors are named according to their class name. If you call the model constructor like this:

Code:
parent::Model();

you may find it works as expected.

EDIT: I just tested it, and there's no reason why __construct shouldn't work. That is, of course, so long as it really is PHP 5 you're running, and not PHP 4.


Messages In This Thread
Problem with extended Model - by El Forum - 02-09-2009, 05:16 AM
Problem with extended Model - by El Forum - 02-09-2009, 05:25 AM
Problem with extended Model - by El Forum - 02-09-2009, 05:35 AM
Problem with extended Model - by El Forum - 02-09-2009, 05:43 AM
Problem with extended Model - by El Forum - 02-09-2009, 06:18 AM
Problem with extended Model - by El Forum - 02-09-2009, 06:41 AM
Problem with extended Model - by El Forum - 02-09-2009, 06:54 AM
Problem with extended Model - by El Forum - 02-09-2009, 07:02 AM
Problem with extended Model - by El Forum - 02-09-2009, 07:03 AM
Problem with extended Model - by El Forum - 02-09-2009, 07:13 AM
Problem with extended Model - by El Forum - 02-09-2009, 07:26 AM
Problem with extended Model - by El Forum - 02-09-2009, 07:30 AM
Problem with extended Model - by El Forum - 02-09-2009, 07:45 AM
Problem with extended Model - by El Forum - 02-09-2009, 07:54 AM
Problem with extended Model - by El Forum - 02-09-2009, 08:05 AM
Problem with extended Model - by El Forum - 02-10-2009, 05:08 AM
Problem with extended Model - by El Forum - 02-10-2009, 05:13 AM
Problem with extended Model - by El Forum - 02-10-2009, 09:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB