yii-generator-collection Extensions for Gii (Yii Code Generator)

  1. Customizing Code Templates
  2. Requirements
  3. Installation
  4. Similar extensions and/or other generators
  5. Article
  6. 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.

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
20 0
35 followers
3 096 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Developed by: volkmar
Created on: Apr 17, 2011
Last updated: 5 years ago

Downloads

show all

Related Extensions