2018-09-22 17:05:14 +01:00
|
|
|
# php yii
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
> Yii Framework's command-line interface.
|
2019-05-29 14:53:46 +01:00
|
|
|
> More information: <https://yiiframework.com>.
|
2018-09-22 17:05:14 +01:00
|
|
|
|
|
|
|
- Display a list of all available commands:
|
|
|
|
|
|
|
|
`php yii {{help}}`
|
|
|
|
|
|
|
|
- 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}}`
|