Hi,
I am using my Yii Bootstrap but it is coming out like the following, please see attached screenshot.
Has anyone else encounter this problem?
James.
Hi,
I am using my Yii Bootstrap but it is coming out like the following, please see attached screenshot.
Has anyone else encounter this problem?
James.
Here is screenshot.
6190
See how the links appears underneath each other, this is how it is out of the box. I do not understand why it is not working.
Which application are you using and how did you install it?
Hi its Ok now, I was just missing the following …
"options" => ["class" => "navbar-nav navbar-right"],
Full code here …
echo Nav::widget([
"options" => ["class" => "navbar-nav navbar-right"],
"items" => [
["label" => "Home", "url" => ["/site/index"]],
["label" => "About", "url" => ["/site/about"]],
],
]);
I used the basic app and deleting all the models, views and controllers etc and started building my own models, views and controller in their place etc.
I was just missing the "class" navbar-right etc, in the Nav::widget though.