2017 © Pedro Peláez
 

yii2-extension yii2-admin

Admin

image

dyar74/yii2-admin

Admin

  • Wednesday, May 24, 2017
  • by dyar74
  • Repository
  • 1 Watchers
  • 1 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Admin Extension

Admin / basic template based on: dektrium\yii2-user developeruz\yii2-db-rbac lajax\yii2-translate-manager lajax\yii2-language-picker codezeen\yii2-adminlte, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist dyar74/yii2-admin "*"

or add, (*4)

to the require section of your `composer.json` file.


"dyar74/yii2-admin": "*"

add migrations: php yii migrate/up --migrationPath=@vendor/dyar74/yii2-admin/migrations, (*5)

default user: admin password: admin12345, (*6)

Usage

add to config web.php:, (*7)

'bootstrap' => ['admin'], 'language' => 'uk-UA', // you default language 'modules' => [ 'admin' => [ 'class' => 'dyar74\admin\AdminModule', 'userItems' => ['label' => Yii::t('admin', 'User Block Extensions'), 'options' => ['class' => 'treeview'], 'items' => [ [ 'label' => Yii::t('admin', 'Ext1'), 'url' => ['#']], [ 'label' => Yii::t('admin', 'Ext2'), 'url' => ['#']], [ 'label' => Yii::t('admin', 'Ext3'), 'url' => ['#']], ] ], //if you have add items to admin menu ],.. ] Change return to(see you path to vendor): return array_merge_recursive($config, require('../vendor/dyar74/yii2-admin/config/admin.php'));, (*8)

The Versions