摘要: 文章原出处:http://blog.sina.com.cn/s/blog_92863deb01011rni.html 是我喜欢的风格,简洁。Web开发的过程中, 经常会用到验证码, 以防止机器人不断的提交数据, 造成网站的瘫痪. Yii里提供了一个验证码的插件, 就是Captcha. 在项目中使用Captcha需要以下一些设置:第一步在Controller里添加方法 actionspublic function actions(){return array(// captcha action renders the CAPTCHA image displayed on the contact 阅读全文
posted @ 2013-04-12 16:58 zyliang 阅读(423) 评论(0) 推荐(0) 编辑
摘要: Yii 取得验证码的值Yii 验证码 在 controller 里面取得验证码值$this->createAction('captcha')->getVerifyCode(); 阅读全文
posted @ 2013-04-12 16:45 zyliang 阅读(125) 评论(0) 推荐(0) 编辑