$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>
Yii 获取验证码与Yii常用的URL,布布扣,bubuko.com
原文:http://www.cnblogs.com/uduemc/p/3831938.html