Thursday, November 27, 2008

Re: HABTM pagination

> $this->set('filters',$this->Listing->Cuisine->find('all',array
> ('conditions'=>array('Cuisine.id'=>$searchby))), $this->paginate());

what is it supposed to do?

I think that what you really want to do is:

// in the controller
$this->set('filter', $this->paginate());

--~--~---------~--~----~------------~-------~--~----~
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 cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: