YII2 ADVANCED instalar template

para el backend vamos a usar,
AdminLTE - Free Premium Admin control Panel Theme Based On Bootstrap 3.x
https://github.com/almasaeed2010/AdminLTE


a traves de

AdminLTE Asset Bundle

Backend UI for Yii2 Framework, based on AdminLTE
https://github.com/dmstr/yii2-adminlte-asset

entonces, en la consola ejecutar

composer require dmstr/yii2-adminlte-asset "2.*"
copiar la carpeta vendor\dmstr\yii2-adminlte-asset\example-views\yiisoft\yii2-app
dentro de backend/views

y editamos backend/config/main-local.php

'view' => [
    'theme' => [
    'pathMap' => [
                '@app/views' => '@app/views/yii2-app'
            ],
    ],
    ],

para el frontend:

descargar algun theme por ejemplo metro desde aqui
https://yii2.themefactory.net/theme/56/metro#.WIQ-JPnhDIU

en frontend/ creamos la carpeta themes

editamos frontend/config/main-local.php

y editamos backend/config/main-local.php

'view' => [
    'theme' => [
    'pathMap' => array('@app/views' => '@app/themes/metro'),
    'baseUrl'   => '@web/../themes/metro'
    ],
    ],



No hay comentarios:

Publicar un comentario

linux ubuntu mint actualizar chrome

 desde una terminal: $ sudo apt update $ sudo apt install google-chrome-stable