public function actioncaptcha(){ return array( 'class'=>'system.web.widgets.captcha.ccaptchaaction', 'height'=>20, 'width'=>20, 'maxlength'=>4, 'minlength'=>4 ); }
public function actions(){ return array( 'captcha'=>array( 'class'=>'system.web.widgets.captcha.ccaptchaaction', 'height'=>25, 'width'=>80, 'maxlength'=>4, 'minlength'=>4 ), ); }
我觉得都是调用验证码类啊。为什么第一个不能用,第2个能用呢
回复讨论(解决方案) 显然是因为第一个少了一层
格式不对了
少了一?,要按格式才可以的。
和层无关。是关于actions的问题好不好
怎么无关?
第二段不是有键 captcha (验证码)吗?
而第一段有谁能知道返回的数据的归属呢?