hi all
i'm sure theres an easy answer to this but i'm stumped!
I've setup my site to use modules as set out on the ZF documentation:
Code:
docroot/
index.php
application/
default/
controllers/
IndexController.php
FooController.php
models/
views/
scripts/
index/
foo/
helpers/
filters/
blog/
controllers/
IndexController.php
models/
views/
scripts/
index/
helpers/
filters/
The issue I have is that I can't seem to reference any files in the respective model directories under each module. I;ve used $front->addControllerDirectory() to set the locations fine and know you need to precede action controllers with module names. I also have Zend_Loader set to autoload.
For example, under the models dir in blog module i have a class called myClass.php,I then try to call this
Code:
public function blog_IndexAction(){
$myclass = new myClass()
}
and it fails as it can't find class 'myClass'. I've tried
Code:
public function blog_IndexAction(){
$myclass = new blog_myClass()
}
and that doesn't work either. Am I missing something here? Do I have to manually set the model directories for each module before zend_loader recognises them?