Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cowzo's avatar
Level 2

Best pratice: multiple form filters

Hi there,

So I stumbled upon the following question when I was creating multiple filters. Each filter/form request is currently associated with it's own DB query in the Controller. What would be the best practice if I want to make use of 4 different filters which can be combined. Would this mean I need to make 444*4 different IF-statements in my Controller to cover all the options?

Thanks!

0 likes
3 replies
cowzo's avatar
Level 2

Hi @Reached

Thank you very much! Looks exactly where I need more information about.

1 like

Please or to participate in this conversation.