使用 Gii 生成代码(Generating Code using Gii)
最后更新于:2022-04-01 04:01:28
# Gii Extension for Yii 2
This extension provides a Web-based code generator, called Gii, for Yii 2 applications. You can use Gii to quickly generate models, forms, modules, CRUD, etc.
Gii provides a Web-based interface for you to interactively generate the code you want. It also provides a command line interface for people who prefer to work with their console windows most of the time.
## [](https://github.com/yiisoft/yii2-gii/blob/master/docs/guide/README.md#getting-started)Getting Started
* [Installation](https://github.com/yiisoft/yii2-gii/blob/master/docs/guide/installation.md)
* [Basic Usage](https://github.com/yiisoft/yii2-gii/blob/master/docs/guide/basic-usage.md)
## [](https://github.com/yiisoft/yii2-gii/blob/master/docs/guide/README.md#additional-topics)Additional topics
* [Creating your own templates](https://github.com/yiisoft/yii2-gii/blob/master/docs/guide/topics-creating-your-own-templates.md)
* [Creating your own generators](https://github.com/yiisoft/yii2-gii/blob/master/docs/guide/topics-creating-your-own-generators.md)