2017 © Pedro Peláez
 

yii2-extension yii2-adminlte

AdminLTE theme for Yii2 Framework

image

wkii/yii2-adminlte

AdminLTE theme for Yii2 Framework

  • Wednesday, August 9, 2017
  • by terry
  • Repository
  • 1 Watchers
  • 6 Stars
  • 592 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 8 Versions
  • 18 % Grown

The README.md

Notice

This project is out of maintenance., (*1)

Recommended use: https://packagist.org/packages/dmstr/yii2-adminlte-asset, (*2)

Yii2 AdminLTE Asset Bundle

Backend UI for Yii2 Framework, based on AdminLTE v2.x, (*3)

This package contains an Asset Bundle for Yii 2.0 Framework which registers the CSS files for the AdminLTE user-interface., (*4)

AdminLTE template require Font Awesome, so must installed composer plugins asset-plugin., (*5)

composer global require "fxp/composer-asset-plugin:~1.0.0"

Installation

The preferred way to install this extension is through composer., (*6)

To install AdminLTE v2 run:, (*7)

composer require wkii/yii2-adminlte

Quick Start

Once the extension is installed, you can have a preview by reconfiguring the path mappings of the view component:, (*8)

For Yii 2 Application Template or Basic Application Template, (*9)

'components' => [
    'view' => [
         'theme' => [
             'pathMap' => [
                '@app/views' => '@vendor/wkii/yii2-adminlte/example-views/yii2-app'
             ],
         ],
    ],
],

This asset bundle provides sample files for layout and view (see folder example-views/yii2-app), they are Don't modify in the vendor/ folder., (*10)

Therefore it is recommended to copy the views files into your application views folder and adjust them to your needs., (*11)

Customization

  • Copy files from vendor/wkii/yii2-adminlte/example-views/yii2-app (or other theme) to @app/views.
  • Remove the custom view configuration from your application by deleting the path mappings, if you have made them before.
  • Edit your views adhering to html markup vendor/almasaeed2010/adminlte/pages

AdminLte Skins

By default the extension uses skin-blue for AdminLTE. You can change it in config file., (*12)

'components' => [
    'assetManager' => [
        'bundles' => [
            'Wkii\AdminLTE\Asset\AdminLteAsset' => [
                'skin' => 'skin-red',
            ],
        ],
    ],
],

Here is the list of available skins:, (*13)

"skin-blue",
"skin-blue-light",
"skin-yellow",
"skin-yellow-light",
"skin-green",
"skin-green-light",
"skin-purple",
"skin-purple-light",
"skin-red",
"skin-red-light",
"skin-black",
"skin-black-light

For Menu

Example menu see main-sidebar.php., (*14)

This Widget is extends yii\widgets\Menu. Menu item add icon attribute. use Font Awesome icon. e.g., (*15)

['label' => 'Gii', 'url' => ['/gii'], 'icon' =>'fa-gavel']

Layout

Default layout is main.php.
add single single page layout. No sidebar, no control-sidebar, no footer, no content-header, no breadcrumbs. for iframe dialog., (*16)

Pjax

pjax templates use yiisoft/jquery-pjax. pjax layout is pjax-main.php. It's include pjax-main-content.php. pjax-content.php output only content of div #pjax-container., (*17)

Use pjax, you can change it in config, (*18)

'layout' => 'pjax-main',
'components' => [
   // ......
]

Or your Controller add attribute, (*19)

public $layout='pjax-main';

Controller action example:, (*20)

    public function actionWelcome()
    {
        if (Yii::$app->request->isPjax) {
            $this->layout = 'pjax-content';
            return $this->render('welcome');
        } else {
            return $this->render('welcome');
        }
    }

Further Information

For AdminLTE documentation, please read
* https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html, (*21)

For Pjax, please read * https://github.com/yiisoft/jquery-pjax * https://github.com/defunkt/jquery-pjax, (*22)

The Versions

09/08 2017

dev-master

9999999-dev

AdminLTE theme for Yii2 Framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar terry

extension yii2 adminlte

09/08 2017

1.0.7

1.0.7.0

AdminLTE theme for Yii2 Framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar terry

extension yii2 adminlte

24/08 2016

1.0.6

1.0.6.0

AdminLTE theme for Yii2 Framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar terry

extension yii2 adminlte

25/07 2016

1.0.5

1.0.5.0

AdminLTE theme for Yii2 Framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar terry

extension yii2 adminlte

01/06 2016

1.0.4

1.0.4.0

AdminLTE theme for Yii2 Framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar terry

extension yii2 adminlte

24/08 2015

1.0.3

1.0.3.0

AdminLTE theme for Yii2 Framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar terry

extension yii2 adminlte

20/08 2015

1.0.1

1.0.1.0

AdminLTE theme for Yii2 Framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar terry

extension yii2 adminlte

20/08 2015

1.0.0

1.0.0.0

AdminLTE theme for Yii2 Framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar terry

extension yii2 adminlte