Hi! How can I set up routing in symfony to be like that(if one rule won't work, next should be grabbed):
- /controller/action/param/param/param/...
- /admin/controller/action/param/param/param/... ("admin" is constant here - name of the bundle)
I tried that:
But it doesn't work, even for the first rule. Sorry for my English, and thanks for any future help ;>.
homepage:
pattern: /
defaults: { _bundle: HelloBundle, _controller: Hello, _action: index }
default:
pattern: /:controller/:action/*
defaults: { _bundle: HelloBundle }