yii2cmf / yii2-adminlte-asset
AdminLTE is a fully responsive administration template. Based on Bootstrap 4 framework. Highly customizable and easy to use. Fits many screen resolutions from small mobile devices to large desktops.
Installs: 113
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- almasaeed2010/adminlte: 3.0.*
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-05-15 17:57:40 UTC
README
AdminLTE 3 - Free admin dashboard template based on Bootstrap 4 for Yii2 framework
AdminLTE is a fully responsive administration template. Based on Bootstrap 4 framework. Highly customizable and easy to use. Fits many screen resolutions from small mobile devices to large desktops.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require yii2cmf/yii2-adminlte-asset:0.2
or add
"yii2cmf/yii2-adminlte-asset": "~0.2"
to the require section of your composer.json
file.
Configuration for module
After creating the module (e.g. admin) you should add some initialization code in the Module.php:
use Yii; use yii\base\Theme; use yii\base\Application; public function init():void { parent::init(); $this->initTheme(); } private function initTheme(): void { Yii::$app->view->theme = new Theme([ 'pathMap' => ['@app/views' => '@yii2cmf/templates/adminlte/views'], 'baseUrl' => '@web/templates/adminlte' ]); }
Configuration for ability editing template
Copy vendor/yii2cmf/yii2-adminlte-asset/src/views/adminlte folder to app/modules/admin/views. And edit Module.php file:
use Yii; use yii\base\Theme; use yii\base\Application; public function init():void { parent::init(); $this->initTheme(); } private function initTheme(): void { Yii::$app->view->theme = new Theme([ 'pathMap' => ['@app/views' => '@app/modules/admin/views/adminlte'], 'baseUrl' => '@web/modules/admin' ]); }