[SOLVED] $this->Paginator->first() and $this->Paginator->prev() incoherence?


I have notice a difference of behaviour with the

<?= $this->Paginator->first('<'< ' . __('first')) ?>


<?= $this->Paginator->prev('< ' . __('previous')) ?>

When you are on the first page or a single page,
the first does not show anything and the second shows the " < previous" button, disabled.

How can I make the “previous” behave like the “first” paginator element?

By the way the same applies to the other extremity of the range:

<?= $this->Paginator->next(__('next') . ' >') ?>
<?= $this->Paginator->last(__('last') . ' >>') ?>

Thank you

you can edit prevDisabled template to empty string https://book.cakephp.org/3.0/en/views/helpers/paginator.html#paginatorhelper-templates

Thank you Graziel.
This is what I did:

<?php $this->Paginator->templates([
     'current'      => '<li class="active"><a>{{text}}</a></li>',
     'prevDisabled' => '',
     'nextDisabled' => '',
    ]); ?>

So the paginator is now coherent (disappearing when not active)