Welcome Guest, Not a member yet? Register   Sign In
Undefined model
#4

[eluser]gRoberts[/eluser]
This confirms my initial suspicions.

Code:
$this->model->load('model_model');
will set $this->model_model and also return an instance of the model when you call it.

If neither are being set, it appears your model is not loading. Do you have other models that work? It may be related to your naming convention. I think it should be "Acl_model" and "Menu_model" although I have never tried it any other way, so it may work.

Within both of your defined models, are you calling
Code:
parent::__construct();
in your constructor? It could be that your not initialising the underlying model class and it's refusing to load correctly?


Messages In This Thread
Undefined model - by El Forum - 03-22-2012, 07:27 AM
Undefined model - by El Forum - 03-22-2012, 08:33 AM
Undefined model - by El Forum - 03-22-2012, 08:36 AM
Undefined model - by El Forum - 03-22-2012, 08:41 AM
Undefined model - by El Forum - 03-22-2012, 08:43 AM
Undefined model - by El Forum - 03-22-2012, 08:46 AM
Undefined model - by El Forum - 03-22-2012, 08:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB