sintret/yii2-basic

Yii 2 Basic Application Template

Installs: 524

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 3

Open Issues: 0

Language:HTML

Type:project

v1.6.0 2015-03-10 10:22 UTC

This package is not auto-updated.

Last update: 2024-11-17 07:13:58 UTC


README

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

Plese read other tutorial at http://sintret.com/blog_detail/523/yii2_create_project_with_adminlte_basic_and_advanced_easyly

BASIC TEMPLATE

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

we will using composer to download and install application template with adminlte.

lets get with your console:

composer create-project sintret/yii2-basic your-folder-directory-name

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".

edit your config db.php and change your dbname

dsn' => 'mysql:host=localhost;dbname=yii2basic',

dont forget to create database with the same configuration as dbname.

we need migrate to create table chat, user, todolist,log upload,dynagrid, notification.

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

ok, we need again to user

just using like these following code :

"yii insert/init"

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

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

create rbac :

"yii migrate --migrationPath=@yii/rbac/migrations"

"yii rbac/init"