1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-30 22:17:57 +01:00
tldr/pages/common/php-yii.md
2019-05-31 19:47:40 +01:00

444 B

php yii

Yii Framework's command line interface. More information: https://yiiframework.com.

  • 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}}