netis / yii2-crud-demo
Yii 2 CRUD Demo
Installs: 77
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 7
Type:project
Requires
- php: >=5.4.0
- netis/yii2-crud: dev-master
- nineinchnick/yii2-usr: dev-master
- yiisoft/yii2: >=2.0.5
- yiisoft/yii2-bootstrap: *
- yiisoft/yii2-swiftmailer: *
Requires (Dev)
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.