2017 © Pedro Peláez
 

yii2-extension yii2-admin

Admin panel extension for Yii2.

image

maddoger/yii2-admin

Admin panel extension for Yii2.

  • Monday, March 30, 2015
  • by maddoger
  • Repository
  • 1 Watchers
  • 1 Stars
  • 63 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 54 % Grown

The README.md

Yii2 Admin Panel Module by maddoger, (*1)

Installation

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

Either run, (*3)

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

or add, (*4)

"maddoger/yii2-admin": "*"

to the require section of your composer.json file., (*5)

Migration

./yii migrate --migrationPath="@maddoger/admin/migrations"

Configuration

...
'modules' => [
    ...
    'admin' => [
            'class' => 'maddoger\admin\AdminModule',
            'superUserId' => 1,
        ],
    ],
    ...
],

'defaultRoute' => 'admin/site/index',
'layout' => '@maddoger/admin/views/layouts/main.php',
...

Components

'components' => [

    //Admin
    'urlManager' => [
        'rules' => [
            //Admin
            '<action:(index|login|logout|captcha|request-password-reset|reset-password|search)>' => 'admin/site/<action>',
        ]
    ],
    'mailer' => [
        'class' => 'yii\swiftmailer\Mailer',
        'viewPath' => '@maddoger/admin/mail',
        // send all mails to a file by default. You have to set
        // 'useFileTransport' to false and configure a transport
        // for the mailer to send real emails.
        'useFileTransport' => true,
    ],

    //User
    'user' => [
        'identityClass' => 'maddoger\admin\models\User',
        'loginUrl' => ['admin/site/login'],
        'enableAutoLogin' => true,
        'on afterLogin'   => ['maddoger\admin\models\User', 'updateLastVisit'],
        'on afterLogout'   => ['maddoger\admin\models\User', 'updateLastVisit'],
    ],
    'session' => [
        'class' => 'yii\web\DbSession',
        'sessionTable' => 'admin_session',
    ],
...
]

The Versions

30/03 2015

dev-master

9999999-dev

Admin panel extension for Yii2.

  Sources   Download

The Requires

 

by Vitaliy Syrchikov

26/12 2014

v1.0.4.1

1.0.4.1

Admin panel extension for Yii2.

  Sources   Download

The Requires

 

by Vitaliy Syrchikov

21/12 2014

v1.0.4

1.0.4.0

Admin panel extension for Yii2.

  Sources   Download

The Requires

 

by Vitaliy Syrchikov

21/12 2014

v1.0.3

1.0.3.0

Admin panel extension for Yii2.

  Sources   Download

The Requires

 

by Vitaliy Syrchikov

20/11 2014

v1.0.2

1.0.2.0

Admin panel extension for Yii2.

  Sources   Download

The Requires

 

by Vitaliy Syrchikov

15/11 2014

v1.0.0

1.0.0.0

Admin panel extension for Yii2.

  Sources   Download

The Requires

 

by Vitaliy Syrchikov