I have a cakedc search plugin with cakephp 3.0 working fine, but would like to have more advanced search filters like:
city = 'Los Angeles';
city != 'Los Angeles';
city LIKE '%Angeles%';
city LIKE 'Los%';
city NOT LIKE '%Angeles%';
city NOT LIKE 'Los%';
etc...
So i'm looking to add 2 dropdown select and 1 text input to achieve this.
'city' would be in a dropdown of db fields.
=, !=, like %?%, like %?, not like ?% conditions would be a dropdown
'los angeles' search value would be typed in.
Figured out, might not be perfect but seems to work fine:
View:
Model