- Customizing Code Templates
- Similar extensions and/or other generators
- Change log
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 ...
- Application Component Generator
- Log Route Generator
- Message Source Generator
- View Renderer Generator
- Application Generator
- Console Command Generator
- Component Generator
- Event Generator
- Filter Generator
- Portlet Generator
- Validator Generator
- Action Generator
- Exception Generator
- Behavior Generator
- Cache Generator
YGC is the replacement for the "yii class generator suite".
Customizing Code Templates ¶
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.
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.
Similar extensions and/or other generators ¶
- Gii extension generator
- Custom model generator
Change log ¶
Version 1.0 ¶
Version 1.3.1 ¶
- bugfix for "defaut"
Version 1.3.2 ¶
- works now together with Yii 1.1.8 & 1.1.9
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!
Dear Theseus, I try now to keep the generators so simple as passible.
Your Fullcrud & Fullmodel generator is very good.
simple is perfect
This is why I like this extension : its simplicity ! .. it save me a lot of time, Great Job volkmar !!
Hey, new generator in the area!
Very good :)
PS: There's a typo in the "Articel" heading.
Merge gtc path
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.
unit test generator ?
Has anybody heard of a generic Unit test generator
where any generated code would also generate the related Unit tests
into the test folder ?
unit test generator ?
is there a unit test generator somewhere out there?
for example linked to model,controller, or CRUD generators ?
Syntax error at behavior\BehaviorCode.php and cache\CacheCode.php
In both files, line 59: should be "default:", not "defaut:"
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.