$this->createAction('captcha')->getVerifyCode(); //获取当前验证码的值
当前页面url echo Yii::app()->request->url;
跳转前一个页面url $this->redirect(Yii::app()->request->urlReferrer);
layouts/ 下面的模板与模板的继承
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php include Yii::app()->basePath.'/views/layouts/header.php';?>
登录
<?php echo $content;?>
<?php include Yii::app()->basePath.'/views/layouts/footer.php';?>
</body>
</html>