pvsaintpe / yii2-gii-plus
Yii 2 Gii Plus Extension
Installs: 4 381
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 1
Type:yii2-extension
Requires
- php: >=7.0.0
- pvsaintpe/yii2-boost: *
- pvsaintpe/yii2-db-plus: 2.*
- pvsaintpe/yii2-gii: 2.*
- yiisoft/yii2: 2.*
Requires (Dev)
- ext-pdo: *
This package is auto-updated.
Last update: 2024-12-09 04:57:24 UTC
README
Yii 2 Gii Plus Extension
Base Model Generator
yii gii/base_model --interactive=0
This command generates base models like the following:
- models/base/ModelBase.php
- models/query/base/ModelQueryBase.php
Custom Model Generator
yii gii/custom_model --interactive=0
This command generates base models like the following:
- models/Model.php
- models/query/ModelQuery.php
After Custom Models!
You should regenerate base models after custom models twice.
yii gii/base_model --interactive=0 --overwrite=1
yii gii/base_model --interactive=0 --overwrite=1
A first regeneration inserts relations. A second regeneration updates phpDoc @return directives.