Blog

100%
JOB SUCCESS
Visit UpWork Profile

Setting up admin panel in YII 2.0 framework

yii

Overview

YII Framework is a powerful, user-friendly, and high performing PHP framework to create a range of web applications. An open-source framework, Yii offers maximum reusability in an open-source format for a high-tech developmental ecosystem with excellent features. At TRICORE, we use the Yii technology to create modern and scalable applications for our clients.

In most of the project we develop, we are in need of admin panel. In YII, there is an admin panel module already developed and open sourced which can be used to get your project kickstarted. In this post, I will take you through the steps to install admin panel in YII 2.0 framework.

Download YII2 with advance application template.
https://github.com/yiisoft/yii2/releases/download/2.0.8/yii-advanced-app-2.0.8.tgz

Run init in command prompt
C:\wamp\www\yii2\advanced>init and Select Development environment.

Create database and set database name into C:\wamp\www\yii2\advanced\common\config\main-local.php file

Run migrate command C:\wamp\www\yii2\advanced>yii migrate

Add composer on yii2 if not using composer.php

Run php composer.phar

Self update first composer you use.php composer.phar self-update

Update the yii2 using composerphp composer.phar update

Install Admin LTE with composer
https://github.com/dmstr/yii2-adminlte-asset Run on command promptphp composer.phar require dmstr/yii2-adminlte-asset “2.*”

Change the setting of view => component theme in advanced => backend => config => main.php https://github.com/dmstr/yii2-adminlte-asset