07.09
php
saved
louiemiranda
Note
paginate with fulltext search, working if $keyword is static. Since this code is dynamic, the pagination is not working when going to page 2 and so on.
paginate with fulltext search, working if $keyword is static. Since this code is dynamic, the pagination is not working when going to page 2 and so on.
- function sresults() {
- $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');
- }
Parsed in 0.029 seconds, using GeSHi 1.0.7.14