Answer the question
In order to leave comments, you need to log in
How to set default parameters for a route in Yii2?
Hello. Tell me how to set the default route parameters in the configuration?
In Yii 1 it was like this
'pattern1'=>array('route1', 'urlSuffix'=>'.xml', 'defaultParam'=>array())
Answer the question
In order to leave comments, you need to log in
'pattern1' => [
'route' => 'site/view',
'suffix' => '.xml',
'defaults' => ['page' => 'about'],
]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question