You are viewing revision #4 of this wiki article.
This version may not be up to date with the latest version.
You may want to view the differences to the latest version or see the changes made in this revision.
« previous (#3)next (#6) »
Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"
With Yii2 we can do it easily, the following steps
- Download adminLTE of
- extract to a directory, @ app \ web \
- Change the folder name becomes "adminlte"
- Change AppAsset.php located in the directory @ app \ assets \
/** * @link * @copyright Copyright (c) 2008 Yii Software LLC * @license */ namespace backend\assets; use yii\web\AssetBundle; /** * @author Qiang Xue <qiang.xue@gmail.com> * @since 2.0 */ class AppAsset extends AssetBundle { public $basePath = '@webroot'; public $baseUrl = '@web'; public $css = [ 'css/site.css', 'adminlte/css/AdminLTE.css', // THIS CHANGE ]; public $js = [ 'adminlte/js/AdminLTE/app.js' // THIS CHANGE ]; public $depends = [ 'yii\web\YiiAsset', 'yii\bootstrap\BootstrapAsset', ]; }
- Finish Now look at the results :)
Demo
username: admin
password: admin
Demo layout
Very nice!
It would be great if you could write a short article about how you built the layout of the demo.
Thanks for your work!
How about Yii 1
It is fantastic!!
could I integrate Yii 1.1.X with fantastic theme AdminLTE? If yes, then how?
Issue with yii2 advanced backend theme
Hi,
I have installed yii2 advanced,and I want to change backend theme.
I followed your instruction,but nothing changed,
Is there any file where I need to tell yii2 that use adminlte theme?
checkbox problem in Gridview of AdminLTE
using this theme if i use checkboxes in gridview then clicking on header checkbox the checkboxs for the remaining records cannot be selected.
Issue with yii2 advanced backend theme
@Muhammad Shahzad
Tutorial updated. It should solve your problem now.
problems installing theme
hi! I'm trying to install adminlte theme following guide but it can run... :(
How extends the css?
Please, how can i customize the AdminLTE.css?
Update AssetBundle path
probably this page must be updated.
I try a fresh Admin-lte installation and the right AssetBundle is:
If you have any questions, please ask in the forum instead.