1
votes

I have 2 modules: default and admin.

For default module I created custom and removed default routes because I don't want my web works with booth (custom and default). But I want to use default routes for admin module.

Can I set default routes only for one module ? how to do this in Zend Framework ?

If I set

$router->removeDefaultRoutes();

in bootstrap, my routes doesn't work for admin module. I use one Bootstrap.php file for booth modules.

1

1 Answers

1
votes

Try to check current module:

if (Zend_Controller_Front::getInstance()->getRequest()->getModuleName() == 'default') {
    $router->removeDefaultRoutes();
}