当前位置: 代码迷 >> PHP >> 关于yii框架中的actions解决办法
  详细解决方案

关于yii框架中的actions解决办法

热度:100   发布时间:2016-04-28 18:38:52.0
关于yii框架中的actions
本帖最后由 xuzuning 于 2014-08-20 16:20:28 编辑
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个能用呢
------解决方案--------------------
怎么无关?
第二段不是有键 captcha (验证码)吗?
而第一段有谁能知道返回的数据的归属呢?
  相关解决方案