You probably need to add this to your view, so that any parameters in
the URL is passed on to the paginator in the view.
[code]
$paginator->options(array('url' => $this->passedArgs));
[/code]
See http://book.cakephp.org/view/166/Pagination-in-Views for the
pagination setup in the view.
Enjoy,
John
On Feb 2, 9:01 pm, Changoso <[email protected]> wrote:
> I modified the view so it looks something more lke the manual...
>
> <?php if (!empty($gallery['Photo'])):?>
> <table border='1'>
> <tr>
> <?php
> $i = 0;
> foreach ($data as $interest):
> ?>
> <td align='middle'>
> <?php
>
> echo
> $html->link($html->image('photos/'.$interest['Photo']
> ['foto'], array('align'=>'middle', 'height'=>'50%')), array
> ('controller'=>'photos', 'action' => 'view', $interest['Photo']
> ['id']), array('escape' => false));
>
> ?>
> </td>
> <?php if ($i >= 1){
> echo "<tr></tr>";
> $i = -1;
> }?>
> <?php $i++; endforeach; ?>
> </tr>
> </table>
> <?php endif; ?>
>
> Now it kind of works... it does only show me 2 or 3 or 5 (The limit I
> set on the controller) the problem now is that when I press Next>> I
> get a INvalid Gallery...
[snip]
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 [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