Yii2 AdminLTE
Layout
Layout file located at views/layouts/main.php
Asset
Theme Integration
AdminLTE download last version. https://github.com/almasaeed2010/AdminLTE/releases
Installation Steps in GitHub https://github.com/dmstr/yii2-adminlte-asset
Edit file header.php in views/layouts
add this code
<?php
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
/* @var $this \yii\web\View */
/* @var $content string */
?>
<header class="main-header">
<?= Html::a('<span class="logo-mini">APP</span><span class="logo-lg">' . Yii::$app->name . '</span>', Yii::$app->homeUrl, ['class' => 'logo']) ?>
<nav class="navbar navbar-static-top" role="navigation">
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<!-- Navbar left Menu -->
<ul class="nav navbar-nav">
<li ><a href="index.php?r=master%2Fsalespayments%2Fcreate&type=s"><span class="fa fa-shopping-cart"></span></a></li>
</ul>
..
..
..
..
..
</nav>
</header>
Installation Steps in GitHub https://github.com/dmstr/yii2-adminlte-asset
Yii2 AdminLTE header section add menu in Navbar Left side
Edit file header.php in views/layouts
add this code
<?php
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
/* @var $this \yii\web\View */
/* @var $content string */
?>
<header class="main-header">
<?= Html::a('<span class="logo-mini">APP</span><span class="logo-lg">' . Yii::$app->name . '</span>', Yii::$app->homeUrl, ['class' => 'logo']) ?>
<nav class="navbar navbar-static-top" role="navigation">
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<!-- Navbar left Menu -->
<ul class="nav navbar-nav">
<li ><a href="index.php?r=master%2Fsalespayments%2Fcreate&type=s"><span class="fa fa-shopping-cart"></span></a></li>
</ul>
..
..
..
..
..
</nav>
</header>
No comments:
Post a Comment