Skip to content

Commit

Permalink
Add comment for parameters of action
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Jul 9, 2012
1 parent 08cb5c8 commit 4f531a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/cg/templates/application/controllers/Index.php.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class IndexController extends Yaf_Controller_Abstract {
/**
* 默认动作
* Yaf支持直接把Yaf_Request_Abstract::getParam()得到的同名参数作为Action的形参
* 对于如下的例子, 当访问http://yourhost/{&$APP_NAME&}/index/index/index/name/{&$AUTHOR&} 的时候, 你就会发现不同
*/
public function indexAction($name = "Stranger") {
//1. fetch query
Expand Down

0 comments on commit 4f531a2

Please sign in to comment.