I did a similar filter form, although not with pagination. For drop downs, I made the form with the field names as they would be in an edit form, then in the controller, I check if the form was submitted, and put the conditions in the where clause of the call to findAll()... For text matches i checked if any search words were submitted, and added an SQL LIKE clause for that. This way, if the form wasnt' submitted, you do a normal findAlll with no conditions, otherwise you filter.
It was something like that anyway, it was a while ago...It was pretty easy. I hope that gives you some inspiration! On May 25, 1:33 pm, phpsmitty <[EMAIL PROTECTED]> wrote: > AD i downloaded and started working with the pagination class. Do you > think there is a way to mod it to give me a a search box at the top. > I'm looking for something like: > > Drop Down Box Of Fields | Drop Down of Operators | Text box for search > critera | Search Button > > --Bryan > > On May 9, 4:04 am, AD7six <[EMAIL PROTECTED]> wrote: > > > On 30 abr, 18:47, phpsmitty <[EMAIL PROTECTED]> wrote: > > > > This is similar functionality that the masterbake.php file can bake up > > > but the code it produces is very messy. Seams like a couple include > > > files should be able to dynamically generate this functionality > > > automatically. > > > Hi, > > > You can download and pick through a few examples of filtering and > > sorting data using the 1.1paginationcomponent/helper > > here:http://cakeforge.org/frs/?group_id=152 > > > hth, > > > AD --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
