Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

cakephp 4 change layout view in a method

//chnage the layout in Cakephp 4 with the layout file called ajax.php
$this->viewBuilder()->setLayout('ajax');
 
PREVIOUS NEXT
Tagged: #cakephp #change #layout #view #method
ADD COMMENT
Topic
Name
2+2 =