The Yii generator collection (abbr. YGC) offer you a set of Gii code generators for mostly used yii classes and/or components which are the startpoints to extend the framework or your Yii-projects.
The collection contain at the moment a ...
YGC is the replacement for the "yii class generator suite".
Each YGC-generator have two code templates ("default","custom").
Copy and rename the "custom"-template if you want documentate the generated class/ component and if you want add your personal copyright data.
Yii 1.1.7
To use it, simply extract the content of the archive into your application extensions - directory and configure the templates in the 'generatorPaths' section of the gii Configuration inside your application configuration (main.php):
'modules'=>array( 'gii'=>array( 'class'=>'system.gii.GiiModule', 'password'=>'<your password>', 'generatorPaths'=>array( 'ext.gtc' // a path alias ), 'ipFilters'=>array('127.0.0.1','::1'), 'newFileMode'=>0666, 'newDirMode'=>0777, ), ),
It should be no problem to merge YGC with gii-template-collection.
Initial release
Total 9 comments
In both files, line 59: should be "default:", not "defaut:"
is there a unit test generator somewhere out there? for example linked to model,controller, or CRUD generators ?
Has anybody heard of a generic Unit test generator where any generated code would also generate the related Unit tests into the test folder ?
Of course, that would be possible. But why? You can simply use both extensions simultanously. Then you have the generators of both extensions at the left side of your Gii generator.
Hey, new generator in the area! Very good :)
PS: There's a typo in the "Articel" heading.
This is why I like this extension : its simplicity ! .. it save me a lot of time, Great Job volkmar !!
Dear Theseus, I try now to keep the generators so simple as passible. Your Fullcrud & Fullmodel generator is very good.
Some of the generators may be better suited as a snippet for your text editor -> but anyway this extension is great work!
btw. i decided to not integrate your features in gii-template-collection. good to see you now have your own extension up!
greetings...
Leave a comment
Please login to leave your comment.