Teh, Thanks for the heads-up and the code. I was doing it the other way around that is why it was not working and I should have removed the conditions.
Overall, it is now working. Thanks a million! -- Louie Miranda - Email: [email protected] - Web: http://www.louiemiranda.com On Fri, Jul 2, 2010 at 7:50 PM, Teh Treag <[email protected]> wrote: > Louie, > > You can specify conditions for paginate as stated here in the manual: > http://book.cakephp.org/view/165/Controller-Setup > You should end up with something along the lines of this, > http://bin.cakephp.org/view/1633497516 > > > On Jul 2, 3:28 am, Louie Miranda <[email protected]> wrote: > > Can I do a custom find (mysql full text search) then paginate? > > > > $this->Publication->recursive = 0; > > > > > $params = array('conditions'=>array( > > > "MATCH(Publication.ITEMCODE, Publication.ITEMKEYWORDS, > > > Publication.DESCRIPTION) > > > AGAINST ('Jazz') > > > ")); > > > $results = $this->Publication->find('all', $params); > > > $this->set('results', $this->paginate($results)); > > > > This one did not work properly? Any ideas? > > > > -- > > Louie Miranda > > - Email: [email protected] > > - Web:http://www.louiemiranda.com > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] 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
