Hopefully someone more experienced with CakePHP will respond to you,
but I had a similar problem with pagination, and this is how I worked
around it:

<?php
                function fixPagination($input)
                {
                        return str_replace('page:', '', $input);
                }

        ?>
        <?php
                if ($paginator->hasPrev())
                        echo fixPagination($paginator->prev('<<', array(), null,
array('class'=>'disabled')));
        ?>
        <?php
                if ($paginator->hasPrev() || $paginator->hasNext())
                echo fixPagination($paginator->numbers());
        ?>
        <?php
                if ($paginator->hasNext())
                        echo fixPagination($paginator->next('>>', array(), null,
array('class'=>'disabled')));
        ?>

I edited the code to fit your scenario, so there may be some typos.
Like I said, someone else will probably give you a much better answer,
but this will get you moving if you need it right away.

Ron

On Sep 6, 3:25 pm, Grzesiek <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> i am using Paginator component. Everything is fine but i would prefer
> to have URLs line following:
>
> /posts/2
>
> instead of defaults generated by Paginator:
>
> /posts/page:2
>
> How can I achieve that ?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to