Welcome Guest, Not a member yet? Register   Sign In
I can't load my model
#2

[eluser]Buso[/eluser]
You need to load the class before extending it.

One way is loading the parent model but do it somewhere before.
Another way is setting __autoload() magic function to find your base model (or any other class you need, like base controllers if any) when required. A good place for this is your config.php file, because it is loaded at the very beginning of your application.

Also, have you set your error reporting to E_ALL? So you can see what's going on


Messages In This Thread
I can't load my model - by El Forum - 05-30-2010, 11:29 PM
I can't load my model - by El Forum - 05-31-2010, 12:10 AM
I can't load my model - by El Forum - 05-31-2010, 09:02 AM
I can't load my model - by El Forum - 05-31-2010, 09:38 AM
I can't load my model - by El Forum - 05-31-2010, 04:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB