over 8 years ago
I am writing this blog which will let you know how to set OR condition in Cakephp 2.*:
Write following lines of code to use OR condition:
'User' => array ( 'conditions' => array ( 'OR' => array( array('User.status' => 0), array('User.status' => 1), ) ) )
For more information you can click on the following url
http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#complex-find-conditions
Thanks for reading the blog.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)