mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
547 B
Plaintext
22 lines
547 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# php yii
|
|
|
|
> Yii Framework's command-line interface.
|
|
> More information: <https://www.yiiframework.com/doc/guide/2.0/en/tutorial-console>.
|
|
|
|
- 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}}`
|