tldr/pages/common/php-yii.md

17 lines
416 B
Markdown
Raw Normal View History

2018-09-22 17:05:14 +01:00
# php yii
> 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
- 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}}`