Missing Method in HomeController 📋

Cake\Controller\Exception\MissingActionException
Toggle Vendor Stack Frames

Error The action pcIndex is not defined in HomeController

        $request $this->request;
        $action $request->getParam('action');
        if (!$this->isAction($action)) {
            throw new MissingActionException([
                'controller' => $this->name 'Controller',
                'action' => $request->getParam('action'),
                'prefix' => $request->getParam('prefix') ?: '',
                'plugin' => $request->getParam('plugin'),

Error Create HomeController::pcIndex() in file: src/Controller/HomeController.php.

<?php
namespace App\Controller;

use 
App\Controller\AppController;

class 
HomeController extends AppController
{

    public function 
pcIndex()
    {

    }
}

If you want to customize this error message, create templates/Error/missing_action.php