Yii 1.1: yii-generator-collection

Extensions for Gii (Yii Code Generator)
39 followers

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.

Requirements

Yii 1.1.7

Installation

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

Article

Change log

Version 1.0

Initial release

Version 1.3.1

  • bugfix for "defaut"

Version 1.3.2

  • works now together with Yii 1.1.8 & 1.1.9

Total 9 comments

#4252 report it
Andrew Konovalov at 2011/06/20 05:24pm
Syntax error at behavior\BehaviorCode.php and cache\CacheCode.php

In both files, line 59: should be "default:", not "defaut:"

#4150 report it
Tibor Katelbach at 2011/06/09 10:11am
unit test generator ?

is there a unit test generator somewhere out there? for example linked to model,controller, or CRUD generators ?

#4143 report it
Tibor Katelbach at 2011/06/09 02:47am
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 ?

#3755 report it
thyseus at 2011/05/05 07:30am
panurge: merging

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.

#3742 report it
Panurge at 2011/05/04 05:20am
Merge gtc path

It should be no problem to merge YGC with gii-template-collection. Bu isn't kinda crazy ?

#3552 report it
Rodrigo Coelho at 2011/04/18 10:53pm
Hey!

Hey, new generator in the area! Very good :)

PS: There's a typo in the "Articel" heading.

#3530 report it
Raoul at 2011/04/18 05:25am
simple is perfect

This is why I like this extension : its simplicity ! .. it save me a lot of time, Great Job volkmar !!

#3519 report it
volkmar at 2011/04/17 07:58am
snippet

Dear Theseus, I try now to keep the generators so simple as passible. Your Fullcrud & Fullmodel generator is very good.

#3516 report it
thyseus at 2011/04/17 03:12am
Good work!

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 to leave your comment.

Create extension
Downloads