###前提・実現したいこと
CakePHP3で独自のページ送りを実装したいです。
マニュアル通りに実装したのですが、以下のエラーメッセージが発生しました。
参考にしたサイト
https://book.cakephp.org/3.0/ja/views/helpers/paginator.html
###発生している問題・エラーメッセージ
Could not load configuration file: /Applications/MAMP/htdocs/testApp/config/paginator-templates.php
###該当のソースコード
・htdocs/testApp/config/paginator-templates.php <?php return [ 'number' => '<a href="{{url}}">{{text}}</a>', ]; ・htdocs/testApp/src/View/AppView.php class AppView extends View { public function initialize() { $this->loadHelper('Paginator', ['templates' => 'paginator-templates']); } } ・htdocs/testApp/src/Template/Item/search.ctp <?= $this->Paginator->prev('<' . __('')); ?> <?= $this->Paginator->numbers(); ?> <?= $this->Paginator->next(__('') . '>'); ?> <?= $this->Paginator->last(__('') . '>>'); ?>
###試したこと
ViewではなくControllerで以下のように読み込んでも同じエラーになりました。
public $helpers = [
'Paginator' => ['templates' => 'paginator-templates']
];
###補足情報(言語/FW/ツール等のバージョンなど)
フレームワーク
CakePHP3.5.4
あなたの回答
tips
プレビュー