netis/yii2-crud-demo

Yii 2 CRUD Demo

dev-master 2015-12-13 10:51 UTC

This package is not auto-updated.

Last update: 2024-12-21 19:42:28 UTC


README

Demo project presenting the yii2-crud extension on the Northwind example database.

Sources available at https://github.com/netis-pl/yii2-crud-demo.

Preparation steps:

  • cleaned up the basic yii2 application template
  • imported the Northwind db, added foreign keys via migration
  • added users table and used the yii2-usr module for authorization and authentication, added default admin user

CRUD steps:

  • installed via composer require netis/yii2-crud
  • added the gii model generator to config/web.php
  • generated models
  • registered default controllers in the application controller map
  • registered the crudModelsMap application component
  • created auth items and associations for default user
  • configured some components: view (default views path), aliases, formatter

CRUD customization:

  • overridden Category and Employee picture fields

Usage

composer create-project -s dev netis/yii2-crud-demo crud.niix.pl/

Install the database, load schema from docs/northwind.postgre.sql and apply migrations. Update app config if required.

Log in using admin username and admin password.