Missing Method in AmbientesController 📋

Cake\Controller\Exception\MissingActionException
Toggle Vendor Stack Frames

Error The action dormitorio is not defined in AmbientesController

        $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 AmbientesController::dormitorio() in file: src/Controller/AmbientesController.php.

<?php
namespace App\Controller;

use 
App\Controller\AppController;

class 
AmbientesController extends AppController
{

    public function 
dormitorio()
    {

    }
}

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