|
|||
|
The ZF documentation says that in order to implement a modular design (with standard directory structure as explained in Zend Framework: Documentation), I should call
Code:
$front->addModuleDirectory('../application/modules');
Code:
$front->addControllerDirectory ('../application/modules/module1/controllers', 'module1');
|
|
|||
|
I ran some tests, changed the name of an xml config file I open in my controller's init function and got an error saying it could not find the incorrectly named file. That proved that it is indeed finding the correct controller file. But I still get my default error page, so something is not set up right.
I also commented out all of the code in my indexAction except for render ('testapp'); No luck. I also tried changing the name of testapp.phtml to index.phtml and moving the view scripts down one level to the scripts directory. Still didn't work. Here is my directory structure. modules --default [same as below] --module1 ----controllers ------TestappController.php ----views ------scripts --------testapp ----------testapp.phtml |
![]() |
| Thread Tools | |
| Display Modes | |
|
|