Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cadyrov/yii2-gii


https://github.com/cadyrov/yii2-gii

lib yii

Last synced: 16 days ago
JSON representation

Awesome Lists containing this project

README

        

yii2-gii alternative
==============

Installation
------------

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist cadyrov/yii2-gii "*"
```

or add

```
"cadyrov/yii2-gii": "*"
```

to the require section of your `composer.json` file.

Usage
-----

Once the extension is installed, simply use it in your web.php like this

```
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
// uncomment the following to add your IP if you are not connecting from localhost.
//'allowedIPs' => ['127.0.0.1', '::1'],
'generators' => [
'crud' => [
'class' => 'cadyrov\gii\crud\Generator',
'templates' => [
'crud' => 'cadyrov/gii/crud/default',
]
],
'model' => [
'class' => 'cadyrov\gii\model\Generator',
'templates' => [
'model' => 'cadyrov/gii/model/default',
]
]
],
];
```

There are reserved fields on generation CRUD - deleted_at