I am trying to apply bootstrap 4 pagination style in cakephp paginator helper.
It is looking very hard to me.
This my simple html that I want to apply in paginator helper
<nav aria-label="Page navigation example">
<ul class="pagination">
<li class="page-item"><a class="page-link" href="#">Previous</a></li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item"><a class="page-link" href="#">Next</a></li>
</ul>
</nav>
I created a paginator-templates file in config location.
config/paginator-templates.php
return [
'number' => '<a href="{{url}}">{{text}}</a>',
];
Then I have initialized in appView.php
public function initialize(): void
{
$this->loadHelper('Paginator', ['templates' => 'paginator-templates']);
}
After that getting below error
Config file "paginator-templates.php" did not return an array
How can I create a paginator-templates.php
for apply bootstrap 4 pagination design in cakephp ? Has there any blog or example ?