Wednesday, April 1, 2009

Re: Search by Selects

I'd do a check-up on the check boxes (no pund intended) when calling
the search function, get those types into an array. I'm going to
assume you are using cake's paginate and then you could do something
like this:

var $paginate = array(
'conditions'=> array('Music.type' => $arrayWithTheTypesSelected)
)
);

Not sure if this will work for your set up.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: