Missing Method in AppController Cake\Controller\Exception\MissingActionException

Documentation API

The action ajax is not defined in AppController

Error: Create AppController::ajax() in file: src/Controller/AppController.php.

<?php
namespace App\Controller;

use 
App\Controller\AppController;

class 
AppController extends AppController
{

    public function 
ajax()
    {

    }
}

If you want to customize this error message, create src/Template/Error/missing_action.ctp

toggle vendor stack frames