Skip to content

georgeee/yii-lily-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lily module sample

It's a sample project for Lily module. Demo is here.

Requirements

Lily requires several extensions to be installed:

Installation instructions

  1. Download lily sample project (git clone https://github.com/georgeee/yii-lily-sample.git)
  2. Create assets and protected/runtime directories mkdir assets protected/runtime
  3. Download extensions listed above and put them into protected/extensions.
  4. Put framework directory (or symbolic link to it) into protected
  5. Deploy your database (here code is shown for mysql), put corresponding code into db section of config:
<?php
 	'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=lily-sample',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => '****',
			'charset' => 'utf8',
		),
  1. Deploy the DB tables:

    1. ./yiic migrate --migrationPath=ext.lily.migrations --migrationTable=lily_migration up
    2. ./yiic migrate up
    3. Create authManager tables into your DB. You can do it by importing protected/data/authManager.sql
  2. Initialize RBAC structure:

    1. Run ./yiic lily_rbac, it will install Lily's RBAC structure
    2. Run ./yiic lily_rbac assign --user={uid} --role={role, default userAdmin} to assign role to a user
    3. Run ./yiic rbac_installer, it will install app's RBAC structure
    4. Run ./yiic rbac_installer assign --user={uid} --role={role, default articleAdmin} to assign role to a user
  3. Edit config/main.php, fill in your service data, configure yii-mail extension

How to use

Just try it out:) You can register several accounts, then merge users, the you can view merge history or find yourself in user list, and so on.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published