如何在cakephp中的分页链接上传递url中的值

时间:2012-10-27 09:32:12

标签: pagination cakephp-2.1

这是我的分页链接:

<div class="paging" style="margin-bottom:0px;">
    <div class="paging_right" style="margin-bottom:0px;">
    <?php echo $this->paginator->prev('<< '.__('previous', true), array('url'=>array('action'=>'ViewMember/ticket')), null, array('class'=>'disabled'));?>
    |<?php echo $this->paginator->numbers(array('url'=>array('action'=>'ViewMember/ticket'),'pagecnt'=>$ticketcount,'pagenum'=>$pagenumticket));?>  
    <?php echo $this->paginator->next(__('next', true).' >>', array('url'=>array('action'=>'ViewMember/ticket')), null, array('class'=>'disabled'));?>          
    </div>
    </div>

这是点击链接时的网址:

http://localhost/mysite/TestController/ViewMember/ticket/page:2

但我想这样的网址:

http://localhost/mysite/TestController/ViewMember/ticket/page:2/#tinfo

我该怎么做?

0 个答案:

没有答案