Missing Method in EventsController 📋

Cake\Controller\Exception\MissingActionException
Toggle Vendor Stack Frames

Error The action newsdetail is not defined in EventsController

        if ($result instanceof ResponseInterface) {
            return $result;
        }
        $action $controller->getAction();
        $args $this->getActionArgs(
            $action,
            array_values((array)$controller->getRequest()->getParam('pass'))
        );

Error Create EventsController::newsdetail() in file: src/Controller/EventsController.php.

<?php
namespace App\Controller;

use 
App\Controller\AppController;

class 
EventsController extends AppController
{

    public function 
newsdetail()
    {

    }
}

If you want to customize this error message, create templates/Error/missing_action.php