What is it? ¶
Giiant provides templates for model and CRUD generation with relation support and a sophisticated UI. A main project goal is porting many features and learnings from gtc, giix, awecrud and others into one solution.
Please visit GitHub for the latest information and documentation.
Features ¶
Model generator ¶
- generates separate model classes to customize and base models classes to regenerate
- table prefixes can be stipped off model class names (not bound to db connection setting)
CRUD generator ¶
- model, view and controller locations can be customized to use subfolders
- horizontal and vertical form layout
- action button class customization (Select "App Class" option on the Action Button Class option on CRUD generator to customize)
- input, attribute, column and relation customization with provider queue
- callback provider to inject any kind of code for inputs, attributes and columns via dependency injection
Providers ¶
- CallbackProvider universal provider to modify any input, attribute or column with highly flexible callback functions
- RelationProvider renders code for relations (eg. links, dropdowns)
- EditorProvider renders RTE, like
Ckeditor
as input widget - DateTimeProvider renders date inputs
Universal CallbackProvider
Nice job.
How to use the Universal CallbackProvider ?
@jneto
Just updated the docs, please let me know if you have improvement ideas or send a PR.
Nice
I like it !
Giiant providers list ?
Not the good link...
https://github.com/schmunk42/yii2-giiant/tree/develop/crud/providers
@fouss: Fixed link
Thanks for pointing out the broken link, I've fixed it. We'll try to add more descriptive provider examples.
Providers
Hi, would you please point to an example on how to use providers since what is in the docs is to short at least to my understanding.
Thanks in advance!
suggestions!
should totally add a console command generator and support for RBAC moduals!
those two things would make this THE most epic yii2-specific gii tool ever. i remember awecrud did that in Yii1, but there were tonnes of tools for yii1. love the work so far!
@Echo Seven
There are console commands by default in Yii2 and there's also a batch command
We've also recently added accessFilters
@schmunk
interesting. AccessFilters are epic. though, for the commands, i meant more of "generating command controllers" which, since yii1 also supported it, there was a gii tool that allowed you to fill out a few fields and generate all kinds of console command controllers. in yii2, or at least in the copy i have, that seems to be not the case. though, giiant seems to be very nice so far. using it now on a project. the only other things i could suggest is a "created_by" "updated_by" and "created_at" "updated_at" things supported. "blamable behaviour" and "timestamp behaviour" things.
How is CRUD Different from gii?
I'm looking at the screenshots on GitHub and the edit screen seems to be the same as that generated by Gii. I'm looking for stuff like dropdown boxes for foreign keys, checkboxes for boolean fields, and text fields that are the proper length for the field size. WITHOUT having to hand code it. Will Giiant help with this?
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.