I am trying to set up modules in my ZF as follows

application
--models
--modules
----default
-------controllers
-------views
----admin
-------controllers
-------views


This is the code I put in my bootstrap so far

/**
 * Setup controller
 */
$controller = Zend_Controller_Front::getInstance();
$controller->setControllerDirectory(array(
        'default'       => '../application/modules/default/controllers',
        'admin'         => '../application/modules/admin/controllers')
);

/** Add Module **/

$controller->addModuleDirectory('../application/modules');


I can view my index/homepage fine but if I try and go to
http://domain/admin/index I get a "Not Found Message" same even if I try and
go to an action in my default/index controller.

Please could someone advice me on how to set up the router as I can't
understand the ZF manual explanation.

THanks



-- 
View this message in context: 
http://www.nabble.com/Modules-and-Routing-tp19299069p19299069.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to