Hello,
I have a problem with Zend Framework's modular layout and I can't find an explanation anywhere...
I want my project to be modular. My file structure is as follows:
The reds are directoriesCode:root app config config.ini log modules default config controllers IndexController.php models views scripts index.phtml filters helpers mymodule config controllers Mymodule_IndexController.php models views scripts index.phtml filters helpers public index.php bootstrap.php
In my bootstrap file I call
And when I want to load for ex. www.example.com then the default module loads up, with IndexController.php and index.phtmlPHP Code:$front->addModuleDirectory('app/modules');
This is no problem
But when I want to load www.example.com/mymodule then it breaks. The problem is it cannot find index.
I tried lot's of different method,but none of them are working. Can somebody help me out? I cannot find an example for this in the documentation...




Bookmarks