Add this in the view before you echo anything related to the paginator:
$paginator->options(array('url' => array('admin' => true)));
On Thu, Nov 12, 2009 at 5:10 PM, Dave <[email protected]> wrote:
> I am trying to set up admin pagination but I cant seem to find how to get
> the admin/ before the generated links.
>
> I see $options['url'] Url of the action. See Router::url() but other than
> that I am at a loss how to set it up.
>
> <div class="paging">
> <?php echo $paginator->prev('<< '.__('previous', true), array(), null,
> array('class'=>'disabled'));?>
> | <?php echo $paginator->numbers();?>
> <?php echo $paginator->next(__('next', true).' >>', array(), null,
> array('class'=>'disabled'));?>
> </div>
>
> Any help would be appreicated.
>
> Thanks
>
> Dave
>
> --
>
> 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]<cake-php%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>
--
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=.