Bin will be removed on June 1, 2014 in favor of http://gist.github.com. Please save all your pastes before then. So long, and thanks for all the fish!×
1
2
3
4
5
6
7
8
9
10
11
12
function sresults() {
      $options = array();
      $keywords = trim($this->data['Publication']['keywords']);
 
      $scope = array("MATCH(Publication.ITEMCODE, Publication.ITEMCODE_OLD, Publication.ITEMSTOCK, Publication.ITEMSUBCAT, Publication.ITEMNAME, Publication.ITEMLANGUAGE, Publication.ITEMISSUE, Publication.ITEMINFORMATION, Publication.ITEMDISTRIBUTION, Publication.ITEMPRODURL, Publication.ITEMKEYWORDS, Publication.ITEMREPORTTYPE)
     AGAINST ('".$keywords."')");
      $results = $this->paginate('Publication',$scope);
      $this->set('results', $results);
 
      $this->set('flashMessage', 'Status of item');
      $this->render('sresults');
}