Zend not autoloading models

Posted by Guy on Stack Overflow See other posts from Stack Overflow or by Guy
Published on 2010-06-04T14:25:32Z Indexed on 2010/06/05 8:02 UTC
Read the original article Hit count: 233

Filed under:
|
|

Ok, this is driving me nuts!

I have a directory structure as follows:

application
- modules
-- default
--- controllers
--- models
---- DbTable
---- Cachmapper.php
--- views

My config file looks like this

[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] =

The application seems to work, if I navigate to localhost, it correctly goes to the index controller. But, for some reason it refuses to load any models.

Fatal error: Class 'Model_Cachmapper' not found in .............................../application/modules/default/controllers/IndexController.php on line 26

Ideas?

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about zend-framework