Missing Method in WorksController Cake\Controller\Exception\MissingActionException

Documentation API

The action exportpdf is not defined in WorksController

Error: Create WorksController::exportpdf() in file: src/Controller/WorksController.php.

<?php
namespace App\Controller;

use 
App\Controller\AppController;

class 
WorksController extends AppController
{

    public function 
exportpdf()
    {

    }
}

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

toggle vendor stack frames