mirror of https://github.com/CrimsonTome/tldr.git
16 lines
396 B
Markdown
16 lines
396 B
Markdown
|
# php yii
|
||
|
|
||
|
> Yii Framework's command line interface.
|
||
|
|
||
|
- 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}}`
|