2025-03-14 21:59:59 -06:00
|
|
|
# php yii
|
|
|
|
|
|
|
|
|
|
> Yii Framework's command-line interface.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://www.yiiframework.com/doc/guide/2.0/en/tutorial-console>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start PHP's built-in web server for the current Yii application:
|
|
|
|
|
|
|
|
|
|
`php yii {{serve}}`
|
|
|
|
|
|
|
|
|
|
- Generate a controller, views and related files for the CRUD actions on the specified model class:
|
|
|
|
|
|
|
|
|
|
`php yii {{gii/crud}} --modelClass={{ModelName}} --controllerClass={{ControllerName}}`
|
|
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`php yii {{help}}`
|