Deprecated (16384): Controller::$layout is deprecated. Use $this->viewBuilder()->layout() instead. [CORE/src/Controller/Controller.php, line 378]
Error: Missing Method in PagesController

Missing Method in PagesController Cake\Controller\Exception\MissingActionException

Documentation API

The action img is not defined in PagesController

Error: Create PagesController::img() in file: src/Controller/PagesController.php.

<?php
namespace App\Controller;

use 
App\Controller\AppController;

class 
PagesController extends AppController
{

    public function 
img()
    {

    }
}

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

toggle vendor stack frames