Friday, March 29, 2013

Re: CakeDC Search Plugin - How to search 2 fields in DB using only 1 form field?

The correct approach as outlined in the readme is to use the array syntax:

'field' => array('User.name', 'User.email', 'Profile.name',
'Profile.phone')


Now it works, I don't know why I didn't see that. Thank you.



--
View this message in context: http://cakephp.1045679.n5.nabble.com/CakeDC-Search-Plugin-How-to-search-2-fields-in-DB-using-only-1-form-field-tp5164502p5714325.html
Sent from the CakePHP mailing list archive at Nabble.com.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: