I have added a search_index table to my DB. I put the following code
in my post_controller:
function search() {
$this->SearchIndex->searchModels(array('Post','Comment'));
$this->paginate = array(
'limit' => 10,
'conditions' => "MATCH(SearchIndex.data) AGAINST('$q'
IN BOOLEAN
MODE)"
);
$this->set('results', $this->paginate('SearchIndex'));
}
Also I created a seach.ctp view file. When I go to the main page of
my app I get errors including the following:
Missing Behavior File
Error: The Behavior file blogtest\models\behaviors\searchable.php can
not be found or does not exist.
What is going on?
Thanks.
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php