I think your condition clause is not properly written.
Try this
$dados = $this->Usuario->find('all', array('conditions'=>array(
'OR'=>array(array('nome_usuario LIKE'=>'%'.$this->data['valor'].'%',
'ocupacao_usuario'=>$this->data['valor']),array('religiao_usuario'=>$this->data['valor']),array('email_usuario'=>$this->data['valor'])))));
Enjoy,
Marcus
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment