advanced code snippet search
deftonez4me on 08/24/09
08/24/09 10:38am08/24/09 10:36am
1 person have marked this snippet as a favorite
//override pagination variable for custom pagination that adds distance$this->paginate = array('limit' => 10, 'fields' => array('Location.lat','Location.long'), 'order' => array('distance' => 'ASC')); $this->set('locations', $this->paginate('Location', $conditions));
Report this snippet
You need to login to post a comment.