Class vitalik74\primer\Nav

Inheritancevitalik74\primer\Nav » yii\bootstrap\Nav

Provide menu. Class based on \yii\bootstrap\Nav and override him.

Example use in your view:

<?php
use vitalik74\primer\Nav;
?>

<div class="site-nav">
<?= Nav::widget([
     'items' => [
         ['label' => 'Account', 'url' => ['log/in'], 'active' => true],
         ['label' => 'Profile', 'url' => 'log/out']
     ]
]) ?>
</div>

See also http://primercss.io/nav/.

Method Details

init() public method

void init( )
renderItem() public method

void renderItem$item )
$item
renderItems() public method

void renderItems( )
run() public method

void run( )