2017 © Pedro Peláez
 

yii2-extension yii2-backend-theme

Yii2 Backend Theme (AdminLTE)

image

mihaildev/yii2-backend-theme

Yii2 Backend Theme (AdminLTE)

  • Monday, June 20, 2016
  • by mihaildev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Yii2 Backend Theme

Установка

"mihaildev/yii2-backend-theme": "*"

Настройка

'components' => [
    'backendTheme' => [
            'class' => 'mihaildev\backendTheme\Component',
            'homeUrl' => ['/backend/index'],
            'templates' =>
            [
                'main.block.navbar' => '@app/views/backend/block/navbar',
                'main.block.sidebar' => '@app/views/backend/block/sidebar',

                // default values
                //'main' => '@mihaildev/backendTheme/views/main',
                //'clear' =>'@mihaildev/backendTheme/views/clear',
                //'main.block.navbar' => '@mihaildev/backendTheme/views/block/navbar',
                //'main.block.copyright' => '@mihaildev/backendTheme/views/block/copyright',
                //'main.block.sidebar' => '@mihaildev/backendTheme/views/block/sidebar',
                //'main.block.settings' => '@mihaildev/backendTheme/views/block/settings',
            ],
            /*
            'params' =>
            [
                'default' => [
                    'skin' => 'skin-blue'
                ],
                'copyright' => [
                    'fromYear' => '',
                    'author' => 'MihailDev',
                    'url' => 'https://github.com/MihailDev'
                ],
                'mainSettings' => [
                    'enable' => true,
                ],
            ]
            */
        ],
    ],

Использование

Отображения списка пользователей, (*1)

setTitle('Users')
    ->setBreadcrumbs(['Users']);

?>



= Html::a('Create User', ['create'], ['class' => 'btn btn-success']) ?>
= GridView::widget([ 'dataProvider' => $dataProvider, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], 'id', 'name', 'email:email', ['class' => 'yii\grid\ActionColumn', 'template' => '{update} {delete}'], ], ]); ?>

Авторизация, (*2)

title = 'Login';
$this->params['breadcrumbs'][] = $this->title;
?>





The Versions

20/06 2016

dev-master

9999999-dev https://github.com/MihailDev/yii2-backend-theme

Yii2 Backend Theme (AdminLTE)

  Sources   Download

BSD-3-Clause

The Requires

 

yii backend theme adminlte

20/06 2016

0.0.3

0.0.3.0 https://github.com/MihailDev/yii2-backend-theme

Yii2 Backend Theme (AdminLTE)

  Sources   Download

BSD-3-Clause

The Requires

 

yii backend theme adminlte

24/05 2016

0.0.2

0.0.2.0 https://github.com/MihailDev/yii2-backend-theme

Yii2 Backend Theme (AdminLTE)

  Sources   Download

BSD-3-Clause

The Requires

 

yii backend theme adminlte

16/05 2016

0.0.1

0.0.1.0 https://github.com/MihailDev/yii2-backend-theme

Yii2 Backend Theme (AdminLTE)

  Sources   Download

BSD-3-Clause

The Requires

 

yii backend theme adminlte