Answer the question
In order to leave comments, you need to log in
(Yii2) How to display link with parameters in yii\bootstrap\Nav widget?
I am using the yii\bootstrap\Nav
widget to display the menu.
I'm trying to specify a link to a user profile in one of the Menu Items:
'url' => ['/user/index&id=' . Yii::$app->user->identity->id],
Answer the question
In order to leave comments, you need to log in
https://github.com/yiisoft/yii2/blob/master/docs/g...
read how to work with urls
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question