Re: Pagination - rendering the counter differently

2007-04-04 Thread MrTufty
Nope, that seems very simple! Thanks nate! On Apr 3, 6:34 pm, "nate" <[EMAIL PROTECTED]> wrote: > $params = $paginator->params(); > > echo $paginator->prev('<< Previous') . ' | '; > for ($i = 1; $i <= $params['pageCount']; $i++) { > if ($i == $params['page'

Re: Pagination - rendering the counter differently

2007-04-03 Thread nate
$params = $paginator->params(); echo $paginator->prev('<< Previous') . ' | '; for ($i = 1; $i <= $params['pageCount']; $i++) { if ($i == $params['page']) { echo $i; } else { echo $paginator->li

Re: Pagination - rendering the counter differently

2007-04-03 Thread Frank P
I needed to do this too, but the current paginator helper doesn't support it. But the work has been done for you. If you copy /cake/libs/ view/helpers/paginator.php to /app/views/helpers/paginator.php and apply the patch from this ticket: https://trac.cakephp.org/ticket/2202 , then you can use the

Pagination - rendering the counter differently

2007-04-03 Thread MrTufty
Hi all, I've been developing a few sites in Cake for internal use, to demonstrate its power to my bosses. I'm using 1.2, and the Pagination helper quite a lot (for some reason they want all the content to fit on an 800x600 screen, so I have a LOT of multiple page sections). Currently, the helpe