CakePhp 4 Widok układu Zmień w metodzie

//chnage the layout in Cakephp 4 with the layout file called ajax.php
$this->viewBuilder()->setLayout('ajax');
Fierce Falcon