thinkyii/yii2-adminlte-assets Admin-LTE-2 Extension for Yii2

templateadminlte

AdminLTE Extension for Yii2

This is the AdminLTE Extension for Yii2.

Installation

Composer

The preferred way to install this extension is through Composer

Either run

php composer.phar require thinkyii/yii2-adminlte-assets "dev-master"

or add

"thinkyii/yii2-adminlte-assets": "dev-master"

to the require section of your composer.json

Usage

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

For Yii 2 Application Template or Basic Application Template

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

This asset bundle provides sample files for layout and view (see folder examples/), they are not meant to be customized directly in the vendor/ folder.

Therefore it is recommended to copy the views into your application and adjust them to your needs.

Customization

  • Copy files from vendor/thinkyii/yii2-adminlte-asset/views (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/bower/admin-lte/pages

By default the extension uses black skin for AdminLTE. You can change this. Just replace class of body skin-black to skin-blue. To fix all menu, add fixed class to body element.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

No stable releases.

Comments



No stable releases.



BSD-3-Clause license
Stats
0 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
10 total downloads