i have defined a variable as an array in my model and i have defined rule for that array as :
public $nameList;
public function rules()
{
array('nameList','type'=>'array','allowEmpty'=>false),
}
I have tried this.I am getting problem?
Try this and it will work
public function rules()
{
array('nameList','type','type'=>'array','allowEmpty'=>false)
}