Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

azlarsin/adminlte-for-yii2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

adminlte-for-yii2

put the files in the right places with yii2 framework.

  1. use the leftMenu widget in the layout like the demo:
      <?= LeftMenu::widget(
          [
              'paramsId' => 'topNav',
              'items' => array('Menu1', 'Menu2', 'Menu With Sub'),
              'options' => array(
                  //单层结构  //single layer structure
                  array(
                      'url' => 'admin-lte',
                      //fw style
                      'font-awesome' => 'fa-desktop',
                  ),
                  array(
                      'url' => 'admin-lte/menu2',
                      'font-awesome' => 'fa-users',
                  ),
                  //多层结构  //tree
                  array(
                      //item' => 'url',
                      'sub1' => Yii::$app->urlManager->createUrl(['admin-lte/menu3', 'sub' => 1]),
                      'sub2' => Yii::$app->urlManager->createUrl(['admin-lte/menu3', 'sub' => 2]),
                      'sub3' => Yii::$app->urlManager->createUrl(['admin-lte/menu3', 'sub' => 3]),
                      'sub4' => Yii::$app->urlManager->createUrl(['admin-lte/menu3', 'sub' => 4]),
                      'font-awesome' => 'fa-cog',
                  ),
              ),
          ]
      ); ?>

  
  1. make the new Asset for using the plugins in the @app/vendor/bower/admin-lte/source/css(js)/plugins.

About

use adminlte as the main layout style with yii2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages