What you can do is set page parameter in your controller to 'last'
or some huge number larger than projected page count.
And it will miraculously bring you to the last page. whatever that
last page's number is.
That is the way Controller::paginate works in 1.3




On Mon, Apr 18, 2011 at 3:42 PM, lucas <chizovo...@gmail.com> wrote:
> I can´t do that because the data can´t be ordered. I need it in that
> way...
>
>
> On 18 abr, 16:37, Tilen Majerle <tilen.maje...@gmail.com> wrote:
>> yes...instead of order => "YourModel.field ASC" type "YourModel.field DESC"
>> and you will have newest posts/whatever in top of pages
>> --
>> Lep pozdrav, Tilen Majerlehttp://majerle.eu
>>
>> 2011/4/18 Jeremy Burns | Class Outfit <jeremybu...@classoutfit.com>
>>
>>
>>
>>
>>
>>
>>
>> > Sort the data in reverse order?
>>
>> > Jeremy Burns
>> > Class Outfit
>>
>> > jeremybu...@classoutfit.com
>> >http://www.classoutfit.com
>>
>> > On 18 Apr 2011, at 20:32, lucas wrote:
>>
>> > > Hi people, is it possible to set as default the last page of the
>> > > paginated data from the controller? Is there an option available to do
>> > > this?
>>
>> > > thanks in advance!
>>
>> > > --
>> > > Our newest site for the community: CakePHP Video Tutorials
>> >http://tv.cakephp.org
>> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
>> > others with their CakePHP related questions.
>>
>> > > To unsubscribe from this group, send email to
>> > > cake-php+unsubscr...@googlegroups.com For more options, visit this group
>> > athttp://groups.google.com/group/cake-php
>>
>> > --
>> > Our newest site for the community: CakePHP Video Tutorials
>> >http://tv.cakephp.org
>> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
>> > others with their CakePHP related questions.
>>
>> > To unsubscribe from this group, send email to
>> > cake-php+unsubscr...@googlegroups.com For more options, visit this group
>> > athttp://groups.google.com/group/cake-php
>
> --
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to