Passing an array as parameters in a search filter with CakePHP?
Hi I got a search filter page and I have a field that's a multiple select so it's value is an array. Is it possible to pass that input's value (w/c is an array) as a parameter or should I use s开发者_如何学JAVAessions?
Thanks!
your coding will be something like this:
$filters=array($param1,$param2,....);
$result=$this->ModelName->find('all',array('condtions'=>array('ModelName.fieldname'=>$filters)));
I hope this may work.
精彩评论