Missing Method in PhotosController Cake\Controller\Exception\MissingActionException

Documentation API

The action afficher is not defined in PhotosController

Error: Create PhotosController::afficher() in file: src/Controller/PhotosController.php.

<?php
namespace App\Controller;

use 
App\Controller\AppController;

class 
PhotosController extends AppController
{

    public function 
afficher()
    {

    }
}

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

toggle vendor stack frames