Friday, October 2, 2009

Re: Geocoding, Distance, & Paginate...

You may want to try:

http://github.com/mariano/geocode

Includes stuff like: $this->Address->find('near', array('distance' => 5));

AD7six wrote:
  On 2 oct, 01:16, Andras Kende <and...@kende.com> wrote:   
Basically just overwrite paginate function, something like:  http://book.cakephp.org/view/249/Custom-Query-Pagination     
 Why is that thought to be necessary. paginate and find all have slightly different usage but the same paramters.  $params = array( of, stuff ); $results = $this->Model->find('all', $params); $pResults = $this->paginate();  /* or $pResults = $this->paginate('Model'); or $pResults = $this->paginate($conditions); or $pResults = $this->paginate('Model', $conditions); */  Kyle Decot Please update the docs to clarify this.  Cheers,  AD     



--~--~---------~--~----~------------~-------~--~----~
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: