Missing Method in ProductsController Cake\Controller\Exception\MissingActionException

Documentation API

The action index is not defined in ProductsController

Error: Create ProductsController::index() in file: src/Controller/ProductsController.php.

<?php
namespace App\Controller;

use 
App\Controller\AppController;

class 
ProductsController extends AppController
{

    public function 
index()
    {

    }
}

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

toggle vendor stack frames