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-PaginationWhy 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
--
-MI
| Coding Ninja @ CRICAVA Technologies | |
| Blog: | http://www.marianoiglesias.com.ar |
| Twitter: | http://twitter.com/mgiglesias |
| LinkedIn: | http://www.linkedin.com/pub/2/483/B94 |
| Facebook: | http://www.facebook.com/mariano.iglesias |
--~--~---------~--~----~------------~-------~--~----~
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:
Post a Comment