How to make a render page slug in yii2?

I want to make a render of the post title, which was formerly transliterated ( slug).
Added actionName($slug) which renders the criterion, but how to remove the action name from a path using urlmanager?
June 26th 19 at 14:15
1 answer
June 26th 19 at 14:17
Solution
If PostController instead of (Name) write (Post)
Create only actionView($slug)
'<controller:(name)>/<slug>' => '<controller>/view',</controller></slug></controller:(name)>

Find more questions by tags YiiPHP