<?php
        class SearchesController extends AppController
        {
                var $name = 'Searches';
                var $layout = 'home';
                var $uses = array('User','Entity');
                var $fields = array();
                var $conditions = array();
                function index()
                 {
                        $q = $this->data;
                        $fields = array('title','description');
                $conditions = array(" MATCH(Entity.title,Entity.description)
AGAINST ('$q' IN BOOLEAN MODE) ");
              $this->set('results',$this->Entity-
>findall($conditions));
                
$res=$this->Entity->findAll($conditions,$fields,NULL,NULL,1,NULL);
                $this->log($res);
                }
        }
?>
        this is the max i could do but still no related o/p in error.log.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to