开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜