Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cornernote/gii-prefixmodel-generator
Makes it easier to generate all models by allowing a model class prefix.
https://github.com/cornernote/gii-prefixmodel-generator
Last synced: about 2 months ago
JSON representation
Makes it easier to generate all models by allowing a model class prefix.
- Host: GitHub
- URL: https://github.com/cornernote/gii-prefixmodel-generator
- Owner: cornernote
- License: bsd-3-clause
- Created: 2013-12-19T14:06:21.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-06T09:31:41.000Z (about 11 years ago)
- Last Synced: 2024-11-14T18:46:42.351Z (2 months ago)
- Language: PHP
- Size: 148 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gii PrefixModel Generator for Yii
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](https://github.com/cornernote/gii-prefixmodel-generator/archive/master.zip) 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:
```php
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.
## License
- Author: Brett O'Donnell
- Source Code: https://github.com/cornernote/gii-prefixmodel-generator
- Copyright © 2013 Mr PHP
- License: BSD-3-Clause https://raw.github.com/cornernote/gii-prefixmodel-generator/master/LICENSE## Links
- [Yii Extension](http://www.yiiframework.com/extension/gii-prefixmodel-generator)
- [Composer Package](https://packagist.org/packages/cornernote/gii-prefixmodel-generator)
- [MrPHP](http://mrphp.com.au)