cakephp filter index pages according to foreign keys

Posted by Marki on Stack Overflow See other posts from Stack Overflow or by Marki
Published on 2010-05-13T16:46:03Z Indexed on 2010/05/13 18:04 UTC
Read the original article Hit count: 333

Filed under:
|
|

Hi there, I'm pretty new to CakePHP and was missing a crucial feature not generated as scaffold: filtering.

What do I have to do to provide dropdowns or multi-selects on the index pages for each field that is a (foreign) key, thereby allowing to filter the table ("OR" inside multi-select, "AND" between different multi-selects, if any)?

From what my websearch has shown me there are many more people trying to accomplish the same thing, although I couldn't find anything that would work for me because either they have text fields and do wildcard filtering, or the plugins they propose only work for 1.2 whereas i now started with 1.3 etc. etc.

Can someone alleviate the confusion and maybe present some working code or direct me to the definitive guide[tm] where this matter has been solved?

Thx

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about filter