Hey, Untested:
resources.router.routes.home.route = "/home/:action/*" resources.router.routes.home.defaults.module = "home" resources.router.routes.home.defaults.controller = "index" resources.router.routes.home.defaults.action = "index" On Tue, Mar 15, 2011 at 3:03 AM, AJ McKee <aj.mc...@druid-dns.com> wrote: > Hi All, > > I'm testing a modular layout with ZF 1.11.4 > > I've created a "home" module and IndexController, index views etc. > > As such I can access the module using the url below with the default > controller: > > server.tld/home/ > > And this displays the IndexController Index Action. My application ini has > the following; > > resources.frontController.controllerDirectory = APPLICATION_PATH > "/controllers" > resources.frontController.params.displayExceptions = 0 > resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" > resources.frontController.moduleControllerDirectoryName = "controllers" > resources.frontController.defaultControllerName = "index" > resources.frontController.defaultAction = "index" > resources.modules[] = "" > > > I would however like to be able to hide the index controller for subsequent > actions so that > > server.tld/home/add > > module => home > controller => index > action => add > > Currently the module throws and exception indicating that the controller Add > is not valid (as indeed its not there) and the following is the request; > > module => home > controller => add > action => index > > > The only way I can access the add action is to specify the full path > > server.tls/home/index/add > > I may be mistaken, but I thought this was possible by default without > specifying any routes. > > The second part of my question is, what if I want to add an additional > controller to the module? > > server.tld/home/foor/bar > > module => home > controller => foo > action => bar > > I would like to be able to have that simple URL too. > > Much appreciate the help > > > AJ -- Juan Felipe Alvarez Saldarriaga http://www.jfalvarez.com -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives Unsubscribe: fw-general-unsubscr...@lists.zend.com