2017 © Pedro Peláez
 

project yii2-basic

Yii 2 Basic Application Template

image

sintret/yii2-basic

Yii 2 Basic Application Template

  • Wednesday, June 3, 2015
  • by sintret
  • Repository
  • 1 Watchers
  • 2 Stars
  • 470 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 5 Versions
  • 2 % Grown

The README.md

yii2-basic

Super fast create application using Yii2 Basic Template with feature like adminlte, chat, whatapp messaging, ckeditor, todolist, whatsapp, graphic, signup form, easy rbac manager using dbmanager and many many feature, (*1)

Plese read other tutorial at http://sintret.com/blog_detail/523/yii2_create_project_with_adminlte_basic_and_advanced_easyly, (*2)

BASIC TEMPLATE, (*3)

Go to your project directory, case in my linux debian as cd /usr/share/nginx/html/project, (*4)

we will using composer to download and install application template with adminlte., (*5)

lets get with your console:, (*6)

composer create-project sintret/yii2-basic your-folder-directory-name, (*7)

you just get coffe and waiting until download and instalation process done. ok, and then go to your project directory and execute init with "php init"., (*8)

edit your config db.php and change your dbname, (*9)

dsn' => 'mysql:host=localhost;dbname=yii2basic',, (*10)

dont forget to create database with the same configuration as dbname., (*11)

we need migrate to create table chat, user, todolist,log upload,dynagrid, notification., (*12)

After its done, you need migration like these following "./yii migrate" in linux, or in windows "yii migrate"., (*13)

ok, we need again to user, (*14)

just using like these following code :, (*15)

"yii insert/init", (*16)

finaly we create rbac dbmanager with simple code, you can see in folder "console/RbacController" with specific level for :, (*17)

Admin : can do everything
Editor : can edit, add and view
Author : can add and view
viewer ; just viewer

create rbac :, (*18)

"yii migrate --migrationPath=@yii/rbac/migrations", (*19)

"yii rbac/init", (*20)

The Versions