gii-prefixmodel-generator Makes it easier to generate all models by allowing a model class prefix.

  1. Features
  2. Installation
  3. Configuration
  4. Usage
  5. Links

Makes it easier to generate all models by allowing a model class prefix.

Features

  • Adds an option into the form for Class Prefix.
  • Extends from Yii's core ModelGenerator.
  • Defaults tablename to *, which will generate all models.

Installation

Please download using ONE of the following methods:

Composer Installation
curl http://getcomposer.org/installer | php
php composer.phar require cornernote/gii-prefix-generator
Manual Installation

Download the latest version and move the gii-prefixmodel-generator folder into your protected/extensions folder.

Configuration

Add the path to gii-prefixmodel-generator to the generatorPaths in your gii configuration:

return array(
	'modules' => array(
		'gii' => array(
			'class'=>'system.gii.GiiModule',
			'generatorPaths' => array(
				'vendor.cornernote.gii-prefixmodel-generator',
				//'ext.gii-prefixmodel-generator', // if you downloaded into ext
			),
		),
	),
);

Usage

Visit index.php?r=gii, then choose PrefixModel from the menu.

Links

0 0
3 followers
0 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Database
Developed by: cornernote
Created on: Dec 19, 2013
Last updated: 3 years ago

Related Extensions