E2 Admin Project Template is a skeleton base application for starting admin development in Yii2 web framework.
The template includes three tiers: front end, back end, and console, each of which is a separate Yii application.
The template uses AdminLTE as a html template.
The project contains following modules to get started -
- Dashboard
- Users
- Access Control
- CMS Manager
- Email Manager
- Settings
It also features two themes alongwith default theme comes with yii2 framework and language swither in frontend.
common
components/ contains helper modules that boostraped with application
config/ contains shared configurations
mail/ contains view files for e-mails
messages/ contains messages translations files for i18n
models/ contains model classes used in both backend and frontend
tests/ contains tests for common classes
widgets/ contains common widgets
console
config/ contains console configurations
controllers/ contains console controllers (commands)
migrations/ contains database migrations
models/ contains console-specific model classes
runtime/ contains files generated during runtime
backend
assets/ contains application assets such as JavaScript and CSS
config/ contains backend configurations
controllers/ contains Web controller classes
models/ contains backend-specific model classes
runtime/ contains files generated during runtime
tests/ contains tests for backend application
views/ contains view files for the Web application
web/ contains the entry script and Web resources
frontend
assets/ contains application assets such as JavaScript and CSS
config/ contains frontend configurations
controllers/ contains Web controller classes
models/ contains frontend-specific model classes
runtime/ contains files generated during runtime
tests/ contains tests for frontend application
themes/ contains template theme view files
views/ contains view files for the Web application
web/ contains the entry script and Web resources
widgets/ contains frontend widgets
vendor/ contains dependent 3rd-party packages
environments/ contains environment-based overrides
The minimum requirement by this project template is Apache Web server that supports PHP 5.4.0.
clone this repository using following command -
git clone
Once project has been cloned open terminal and move to your project folder path.
Run
composer install
command to install all framework requirementCreate a new database and adjust the
components['db']
configuration incommon/config/main-local.php
accordingly.Now apply migrations with command
php yii migrate
.To enable access controls run this migration command
php yii migrate --migrationPath=@yii/rbac/migrations
followed byphp yii rbac/init
command.