Error Sitemap.xmlController could not be found.
* @return \Cake\Http\Exception\MissingControllerException |
|
*/ |
|
protected function missingController(ServerRequest $request) |
|
{ |
|
return new MissingControllerException([ |
|
'class' => $request->getParam('controller'), |
|
'plugin' => $request->getParam('plugin'), |
|
'prefix' => $request->getParam('prefix'), |
|
'_ext' => $request->getParam('_ext'), |
In the case you tried to access a plugin controller make sure you added it to your composer file or you use the autoload option for the plugin.
Suggestion Create the class Sitemap.xmlController below in file: src/Controller/Sitemap.xmlController.php
<?php
namespace App\Controller;
use App\Controller\AppController;
class Sitemap.xmlController extends AppController
{
}
If you want to customize this error message, create templates/Error/missing_controller.php