View Single Post
  #1 (permalink)  
Old 04-05-2008, 09:22 PM
sawatdee sawatdee is offline
Junior Member
 
Join Date: Mar 2008
Posts: 12
Default routing for modules not working

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');
It goes on to say "a module will only be matched if a key of the same name exists in the controller directory array passed to the front controller and dispatcher". So I added the line
Code:
$front->addControllerDirectory ('../application/modules/module1/controllers', 'module1');
But when I try to load www.mysite.com/module1/cont1, I get an error. Even when I try to load www.mysite.com/module1/cont1/index, I still get an error. The controller and index action do exist. It finds the controllers for my default module just fine. What am I missing?
Reply With Quote