Answer the question
In order to leave comments, you need to log in
How to convert $_GET parameters to CNC in Yii2?
This is nonsense, you need to get urls using the following scheme:
controllerName/actionName/paramName/paramValue
catalog/aqua/page/2
product/name-121/commentaries-page/2
enablePrettyUrl = true
Answer the question
In order to leave comments, you need to log in
More or less like this
'urlManager' => [
'enablePrettyUrl' => true, //
'showScriptName' => false, //
'rules' => [
'module/<module:\w+>/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>', //
'<module:\w+>/<controller:\w+>/<action:(\w|-)+>/<id:\d+>' => '<module>/<controller>/<action>',
'<action>' => 'site/<action>',
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question