0

I'm trying to create a clone ( http://site.com/indexclone ) for http://site.com/index, but I also want all actions to be functional as they are in IndexController and potential parameters that are passed to original controller. I've figured out so far:

resources.router.routes.indexclone.route = "indexclone/:action"
resources.router.routes.indexclone.defaults.controller = "index"
resources.router.routes.indexclone.defaults.action = "index"

Please help me figure out the dynamic approach to the parameters list. Thank you in advance!

tereško
  • 58,060
  • 25
  • 98
  • 150
eistrati
  • 2,314
  • 6
  • 26
  • 35

1 Answers1

1

You can do this:

resources.router.routes.indexclone.route = "indexclone/:action/*"
resources.router.routes.indexclone.defaults.controller = "index"
resources.router.routes.indexclone.defaults.action = "index"

But if don't solve your problem you can use the bootstrap to create a dynamic router.

Tiarê Balbi
  • 1,480
  • 1
  • 23
  • 32