hey, > I had been looking for a pagination solution that I could use when I > needed to write a custom queries using CakePhp as the framework. I did > a lot of google searching and looked at a number of examples. However, > I couldn't find the solution I needed. When you look at the controller source[1] - paginate method you will see on lines 991 and 1008 that it looks for functons paginate() and paginateCount() in the object(model) that you want to paginate. just create these functions in the model with your custom logic.
[1] http://api.cakephp.org/1.2/libs_2controller_2controller_8php-source.html#l00887 -- Marcin Domanski http://kabturek.info --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---