Giter Site home page Giter Site logo

yii2-adminlte3-asset's Introduction

AdminLTE3 Asset Bundle for Yii2

Template UI for Yii2 Framework, based on AdminLTE3

AdminLTE is a fully responsive administration template. Based on Bootstrap 4 framework. Highly customizable and easy to use. Fits many screen resolutions from small mobile devices to large desktops. "AdminLTE Presentation"

Installation

Composer

composer require ayrozjlc/yii2-adminlte3-asset

or add

"ayrozjlc/yii2-adminlte3-asset": "dev-master",

to the require section of your composer.json file.

Quick Start

  • In view (for example: @app/views/layouts/main.php)
// ...
use ayrozjlc\adminlte3\AdminLte3Asset;
// ...
AdminLte3Asset::register($this);

or add to your assets/AppAsset.php

public $depends = [
    // ...
    'ayrozjlc\adminlte3\AdminLte3Asset',
];

Preview

  • You can have a preview by reconfiguring the path mappings of the view component:
'components' => [
    'view' => [
        'theme' => [
            'pathMap' => [
                '@app/views' => '@vendor/ayrozjlc/yii2-adminlte3-asset/src/yii2-app'
            ],
        ],
    ],
],

Assets

  • Example in view
use ayrozjlc\adminlte3\assets_extra\IcheckAsset;

IcheckAsset::register($this);

or add to your assets/AppAsset.php

public $depends = [
    'ayrozjlc\adminlte3\assets_extra\PaceAsset',
    'ayrozjlc\adminlte3\assets_extra\IcheckAsset',
    'ayrozjlc\adminlte3\assets_extra\DataTablesAsset',
    'ayrozjlc\adminlte3\assets_extra\DataTablesBootstrapAsset',
];

Widgets

  • Menu

  • ActionColumn

  • Alert

  • Datatables

  • example(menu)

ayrozjlc\adminlte3\widgets\Menu::widget([
    'items' => [
        'label' => 'menu',
        'url' => ['/site/index'],
        'icon' => 'users' //$iconClassPrefix = 'fas fa-'
    ],
    'itemOptions' => ['class' => 'nav-item'],
]);

Credits

yii2-adminlte3-asset's People

Contributors

ayrozjlc avatar

Stargazers

 avatar

Watchers

 avatar

yii2-adminlte3-asset's Issues

Class 'backend\assets\AppAsset' not found

Hi,

I tried to config this adminlte3 in my Yii2 Proyect and I have a issue:

After install and config all files like in the "Quick Start" doc I have this problem.

image

Please help...

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.