Monday, 3 August 2015

Configuration of Layouts, Asset and Theme Integration

Yii2 AdminLTE


Layout file located at views/layouts/main.php


Theme Integration

AdminLTE download last version.

Installation Steps in GitHub

Yii2 AdminLTE  header section add menu in Navbar Left side

Edit file header.php in views/layouts

add this code

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>
       <!-- 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>        



No comments:

Post a Comment