Answer the question
In order to leave comments, you need to log in
Optional first parameter in routing?
How to get rid of the first parameter if necessary? For example, there is a routing
index:
path: /{category}/{item}
defaults: { _controller: AppTestBundle:Test:index, category = mainCategory }
index:
path: /{item}
defaults: { _controller: AppTestBundle:Test:index }
indexWithCat:
path: /{category}/{item}
defaults: { _controller: AppTestBundle:Test:index, category = mainCategory }
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question