Example #1
0
 public function items()
 {
     return [['label' => LanguageMenu::widget(), 'encode' => false, 'options' => ['class' => 'dropdown language-menu']], ['label' => ReminderTop::widget(), 'encode' => false, 'options' => ['id' => 'reminders', 'class' => 'dropdown notifications-menu reminders']], ['label' => CartTeaser::widget(), 'encode' => false, 'options' => ['class' => 'dropdown notifications-menu notifications-cart']], ['label' => UserMenu::create()->render(), 'encode' => false, 'options' => ['class' => 'dropdown user user-menu']], ['label' => '<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>', 'encode' => false]];
 }
Example #2
0
<?php

use hiqdev\yii2\cart\widgets\CartTeaser;
echo CartTeaser::widget();