Re: Pagination: URL for last page

2011-02-28 Thread OldWest
Jeremy,
I was searching a while for this simple last() solution. I recall reading 
about the first and last methods, but imagine my trouble searching keywords 
'first' and 'last' in Google and Cake doc!!. Thanks for refreshing memory. 
This is how I ran it:

Paginator->*first*(__('[ << first page ]', true), array(), 
null, array('class' => 'disabled')); ?>
.
Paginator->*last*(__('[ last page >> ]', true), array(), 
null, array('class' => 'disabled')); ?>

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


Re: Pagination: URL for last page

2010-02-19 Thread WebbedIT
As I stated earlier, you can't know off-site the number of the last
post/page so create an action such as /forum/thread/#id/lastPost or /
forum/thread/#id/lastPage which lets you use cake to determine the
last post/page and display it.

HTH

Paul.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Pagination: URL for last page

2010-02-18 Thread John Andersen
You could use a link like "www.example.com/discussion/thread/page:
9" on the assumption that you will not have more pages than
9 :) That should give you the highest numbered page, no matter
that it doesn't exist. Well, at least on my site, it does :)
Enjoy,
   John

On Feb 18, 6:22 pm, Ragnis  wrote:
> Im creating a forum and i need it to go to the last post
>
> On Feb 13, 10:03 am, WebbedIT  wrote:
>
> > As you need to have queried your dbase to find how many records there
> > are to know what the last page is I am not sure how you can place a
> > permalink to the last page on another site.
>
> > I can't think of a situation where I would post a link to the last
> > page of a paginated index on another site?!?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Pagination: URL for last page

2010-02-18 Thread Ragnis
Im creating a forum and i need it to go to the last post

On Feb 13, 10:03 am, WebbedIT  wrote:
> As you need to have queried your dbase to find how many records there
> are to know what the last page is I am not sure how you can place a
> permalink to the last page on another site.
>
> I can't think of a situation where I would post a link to the last
> page of a paginated index on another site?!?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Pagination: URL for last page

2010-02-13 Thread WebbedIT
As you need to have queried your dbase to find how many records there
are to know what the last page is I am not sure how you can place a
permalink to the last page on another site.

I can't think of a situation where I would post a link to the last
page of a paginated index on another site?!?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Pagination: URL for last page

2010-02-12 Thread Ragnis
No, i need the url.
I want to put that link on other site.

On Feb 2, 7:13 pm, Jeremy Burns  wrote:
> echo $paginator->last('>>');
>
> Jeremy Burns
>
> On 2 Feb 2010, at 17:11, Ragnis wrote:
>
>
>
> > How can i go to the last page, if i don't know the count of items?
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
> > with their CakePHP related questions.
>
> > 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+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Pagination: URL for last page

2010-02-02 Thread Jeremy Burns
echo $paginator->last('>>');

Jeremy Burns


On 2 Feb 2010, at 17:11, Ragnis wrote:

> How can i go to the last page, if i don't know the count of items?
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> 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+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Pagination: URL for last page

2010-02-02 Thread Ragnis
How can i go to the last page, if i don't know the count of items?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en