Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cadyrov/yii2-gii
https://github.com/cadyrov/yii2-gii
lib yii
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cadyrov/yii2-gii
- Owner: cadyrov
- License: bsd-2-clause
- Created: 2018-12-28T14:54:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-27T21:17:20.000Z (almost 5 years ago)
- Last Synced: 2024-03-14T18:03:18.565Z (11 months ago)
- Topics: lib, yii
- Language: PHP
- Size: 156 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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