Welcome Guest, Not a member yet? Register   Sign In
Autoload model in a subfolder
#1

[eluser]goldpelican[/eluser]
Should this work? When I load a model in a subfolder in a controller, this works:

Code:
$this->load->model('blog/post_model');

But if I try to autoload the model in a subfolder, this doesn't work:

Code:
$autoload['model'] = array('blog/post_model');

I can autoload models directly under the models/ folder, but not in a subfolder under this. I'm using subfolders under controllers, models and views to organise an application's frontend and backend functionality, and was planning to use autoloading of models, but it's not working for me.


Messages In This Thread
Autoload model in a subfolder - by El Forum - 03-13-2010, 06:20 AM
Autoload model in a subfolder - by El Forum - 12-06-2010, 06:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB