I working on a website wich use the admad/cakephp-i18n for translations, no problem with the regular controllers but impossible to get localized urls for a “Blog” plugin. I’m not the creator of this website, I just work know on it and I’m relatively new on CakePHP (but 20 years of PHP development).
I just declared the routeClass in the plugin routes declarations like it’s done in the main routes:
$routes->connect( '//:slug-:id.html', ['controller' => 'Articles', 'action' => 'view'], ['routeClass' => 'ADmad/I18n.I18nRoute', 'pass' => ['id', 'slug']] );
and my urls are correctly constructed but when I try to access the page (like
/fr/blog/test-85.html), it raise the following error:
[Cake\Routing\Exception\MissingControllerException] Controller class Blog could not be found.
I’m using CakePHP 3.6.15, admad/cakephp-i18n 1.2 and I don’t know where the Blog plugin comes from.
An idea allowing me to solve this problem?
Thx in advance for your help!