1.yii2 drop-down menu
1<liclass= "Dropdown" ><a href= "#"class= "Dropdown-toggle" data-toggle= "dropdown" > Management <bclass= "Caret" ></b></a>2<ulclass= "Dropdown-menu" >3<li><?= html::a (' new article ', [' article/create '])?></li>4<li><a href= "<?=url::toroute ([' article/list ']);? > > Management Articles </a></li>5<li><a href= "#" > Add column </a></li>6<li><a href= "<?=url::toroute ([' Article-category/index ']);? > > Management Section </a></li>7</ul>8</li>
2.bootrap drop-down menu
1<?PHP2 UseYii\bootstrap\buttondropdown;3 EchoButtondropdown::Widget ([4' label ' = ' Operation ',5' Dropdown ' = [6' Items ' = [7[' label ' = + ' article List ', ' url ' = = ' Url::toroute ([' article/list ')],8[' label ' + ' column list ', ' url ' = = ' Url::toroute ([' Article-category/index ')],9],Ten], One]);? >
[Moka Classmate Notes]yii2.0 drop-down menu with Bootstrap drop-down menu