Welcome Guest, Not a member yet? Register   Sign In
New to CI (be kind)
#7

[eluser]Bart Mebane[/eluser]
@k2zs: You need to load your model before calling it.
Code:
$this->load->model('subNav_model');
You can do this either in your controller constructor (if you're using the model in all or most of the controller functions), or inside a specific controller function. I don't know if the model code you posted was the entire file, but a model, unlike a view or a helper, needs to be defined as a class.


Messages In This Thread
New to CI (be kind) - by El Forum - 10-24-2010, 11:31 AM
New to CI (be kind) - by El Forum - 10-24-2010, 11:55 AM
New to CI (be kind) - by El Forum - 10-24-2010, 12:38 PM
New to CI (be kind) - by El Forum - 10-24-2010, 07:45 PM
New to CI (be kind) - by El Forum - 10-24-2010, 09:32 PM
New to CI (be kind) - by El Forum - 10-24-2010, 10:36 PM
New to CI (be kind) - by El Forum - 10-25-2010, 07:46 AM
New to CI (be kind) - by El Forum - 10-25-2010, 11:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB