Answer the question
In order to leave comments, you need to log in
How to dynamically create correctly in UrlManager for static pages?
I'm making a static page module and I want their urls to be two-level, /about/contact and not /static/about.
In the menu of the main page, I display links like this ['/pages/default/view', 'alias' => 'about'],
in the url manager
'<alias:(about|stock|contact)>' => 'pages/default/view',
Answer the question
In order to leave comments, you need to log in
https://github.com/yiisoft/yii2/blob/master/docs/g...
https://github.com/yiisoft/yii2/blob/master/docs/g...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question