activeDropDownList的第三个参数问题

为什么activeDropDownList($model,$attribute,$data,$htmlOptions=array())里面的@param array data for generating the list options (value=>display) display值是中文就不行呢,只有英文才行。例如:dropDownList($model,‘status’,array(1=>‘passing’,0=>‘no passing’))这样可以输出,但是dropDownList($model,‘status’,array(1=>‘中文1’,0=>‘中文2’)),这样就不行了啊,应该对字符没有影响的啊。。。

是utf8吗?

是的啊。。。

我这里使用正常,你看看编码问题