c006 / yii2-auto-crud
Adds a model and crud for each table in the database
Installs: 525
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 5
Open Issues: 1
Type:yii2-extension
Requires (Dev)
This package is not auto-updated.
Last update: 2024-12-21 17:27:42 UTC
README
New Version July, 2015
Now with template support.
Overview
This extension queries all tables in a connection database (usually db) and creates all models, controllers and views (CRUD) automatically.
Create the database tables first then run this extension and it will create the majority for you.
Demo: http://demo.c006.us
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-source "c006/yii2-auto-crud" "dev-master"
or add
"c006/yii2-auto-crud": "*"
to the require section of your composer.json
file.
Required
Basic config/web.php
Advanced [backend|frontend|common]/config/main.php
'modules' => [
'crud' => [
'class' => 'c006\crud\Module',
],
...
...
],
Install before using "yii2-auto-crud".
php composer.phar require --prefer-dist "c006/yii2-submit-spinner" "dev-master"
Options
No options for this extension
Usage
Pretty Url's /crud
No pretty Url's index.php?r=crud
Update default values
vendor/c006/yii2-auto-crud/models/Crud.php
Errors
Comments / Suggestions
Please provide any helpful feedback or requests.
Thanks.