Hi Juan,

On Tuesday 15 March 2011 at 14:32, Juan Felipe Alvarez Saldarriaga wrote:
Hey,
> 
Thanks for reply.

> 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"
I had tried that. It results in the action being found and called yes. However 
it also prevents me from having another controller and its actions.

The default behaviors is module/controller/action whereas I am looking for 
module/action where action is called from the default module controller *only* 
if a controller of the same name does not exist. If a controller of the same 
name exists then that should be used. 

I'm trying to avoid such URL's as (in module/controller/action format)

home/index/add
home/index/delete
home/index/view/param1/param2

I could just use a controller for each one I suppose, but I thought I could 
choose a default controller for a module that a request would fall back to had 
no other controllers/actions matched.


TIA
AJ

Reply via email to