如何删除«当我在当前分页时以及»如果我在分页的最后一页使用cakephp 3
How to remove « when I am in the current pagination and also » if I am in the last page of pagination using cakephp 3
我想删除 << 因为我还在分页的根部。
我有这个 index.ctp 我放分页的地方
<div class="paginator">
<ul class="pagination">
<?= $this->Paginator->prev('< ' . __('previous')) ?>
<?= $this->Paginator->numbers() ?>
<?= $this->Paginator->next(__('next') . ' >') ?>
</ul>
<p><?= $this->Paginator->counter() ?></p>
</div>
这是我在控制器索引方法中的代码
public function index()
{
$website= $this->set('websites', $this->paginate());
$this->set('website', $website);
$this->set('_serialize', ['website']);
}
这也发生在我想删除的最后一个分页 >>
我想删除 << 因为我还在分页的根部。
我有这个 index.ctp 我放分页的地方
<div class="paginator">
<ul class="pagination">
<?= $this->Paginator->prev('< ' . __('previous')) ?>
<?= $this->Paginator->numbers() ?>
<?= $this->Paginator->next(__('next') . ' >') ?>
</ul>
<p><?= $this->Paginator->counter() ?></p>
</div>
这是我在控制器索引方法中的代码
public function index()
{
$website= $this->set('websites', $this->paginate());
$this->set('website', $website);
$this->set('_serialize', ['website']);
}
这也发生在我想删除的最后一个分页 >>