Yii2 Auto CRUD ¶
New Version August, 2015
- Now with template support
- Yes/No process models
- Yes/No process controllers
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.
Good Job
Good job.. I can't Your demo..
@ThePr0f3550r
I appreciate the update, thank you.
It has been fixed.
Good job!
Good job! A real life saver with the new "full name" need!
It created everything until it reached my views. Apparently it cannot identify that the "table" (it is a view actually) does not have a pk and then it crashes.
Suggestion - since there is no sense creating crud for views, create the model and skip the rest.
New version out
Now support custom templates.
To be more precise
In Required section
...
Advanced [backend|frontend|common]/config/main.php
Does all the main.php needs to be modified?
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.