Revision: 17123
Updated Code
at August 24, 2009 10:38 by deftonez4me
Updated Code
//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));
Revision: 17122
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 24, 2009 10:36 by deftonez4me
Initial Code
//override pagination variable for custom pagination that adds distance $this->paginate = array('limit' => 10, 'fields' => array('Location.id','Location.latitude','Location.longitude',$distance), 'order' => array('distance' => 'ASC')); $this->set('locations', $this->paginate('Location', $conditions));
Initial URL
Initial Description
Initial Title
Redeclare Paginate var in function | CakePHP
Initial Tags
Initial Language
PHP