From 0c542c130b2da1fbf8031baf233defaa210428b0 Mon Sep 17 00:00:00 2001 From: I'm Liam Date: Sat, 22 Sep 2018 17:05:14 +0100 Subject: [PATCH] php yii: add page (#2347) --- pages/common/php-yii.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/common/php-yii.md diff --git a/pages/common/php-yii.md b/pages/common/php-yii.md new file mode 100644 index 000000000..cca4c84d8 --- /dev/null +++ b/pages/common/php-yii.md @@ -0,0 +1,15 @@ +# 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}}`