simple-projects/yii2-sbadmin

SB Admin 2 template for Yii2

Installs: 95

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Type:yii2-extension

dev-master 2016-04-12 20:04 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:47:42 UTC


README

Implementation of SB Admin2 theme. This is very initial verson.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist simple-projects/yii2-sbadmin "*"

or add

"simple-projects/yii2-sbadmin": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, you have two ways to use it :

Good Way

Put in section components in your main config file Path Map configuration

'view' => [
            'theme' => [
                'pathMap' => [
                    '@app/views/layouts' => '@vendor/simple-projects/yii2-sbadmin/views/layouts'
                ],
            ],
        ],

So your new layout is done. For customizing top and left menu in your layout folder, you should create the files: _left_navigation.php

_top_navigation.php

You can get the structure of the menus from /vendor/simple-projects/yii2-sbadmin/views/layouts directory.

Antoher Way

You can copy files from /vendor/simple-projects/yii2-sbadmin/views/layouts to your layouts directory. Note: they wouldn't be updated if there is new version.