1. 简介
相当于路由控制器
2. Bootstrap 初始化设置
3. Action传递参数
public function indexAction()
{
echo "Index
";
$username = $this->_getParam('username');
$password = $this->_getParam('password');
echo $username;
echo "
";
echo $password;
/* Initialize action controller here */
}
~/auth/index/username/jack/password/111
4. Action 重定向输出
$this->render("index"); //重定向到indexAction对应的view
$this->renderScript("default.phtml"); //重定向到default.phtml文件
阅读(430) | 评论(0) | 转发(0) |