%YiiRoot/framework/yiic shell>> controller message helloWorld
generate MessageController.php
mkdir /Webroot/demo/protected/views/message
generate helloworld.php
generate index.phpController 'message' has been created in the following file:/Webroot/demo/protected/controllers/MessageController.phpYou may access it in the browser using the following URL:http://hostname/path/to/index.php?r=message>>
转载于:https://my.oschina.net/luyuhx/blog/190582