Jonathon Davis-2 wrote:
> 
> 
> I am having problems getting pagination working correctly for me in
> 1.2.0.4206
> 
> In the view I have this to display the Prev and Next controls for the
> user: <?php echo $this->prev().' '.$this->next(); ?>
> 
> It correctly displays the default page, and page 2 when the Next link
> is clicked, but after you've clicked one link, the Next and Prev links
> are messed up. They show up like this:
> http://localhost/cake/admin/graphics/index/page:3page:3 which is
> obviously not correct, and it always just shows the 1st page if a link
> like that (with the page in there twice). Any way to fix this?
> 


I'm having the same problem with $paginator->next() and ->prev();
Looking inside the cake's code I found the solution:

remove or comment line line 445 in the file /cake/libs/router.php

$combined = '';
if (!empty($path['namedArgs'])) {
        $count = count($named);
        for ($i = 0; $i < $count; $i++) {
                $named[$i] = join($path['argSeparator'], $named[$i]);
        }
        
THIS LINE SHOULD BE COMMENTED  >>>      //$combined = join('/', $named);
}

I don't know what this line does, but broblem is fixed ;) I also tested
"combined arguments", seems to be everything is ok!

Best regards!
-- 
View this message in context: 
http://www.nabble.com/paginate%28%29-problem-in-1.2.0.4206-tf3065637.html#a8741930
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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