Cake 4 : How to force load app_form?

Hi !
i use a app_form.php file to replace some of default form template

each time i want to use it, i have to wrote :

$this->loadHelper('Form', [
'templates' => 'app_form',

Is there a way to override by default ?


Make that call in a central place, like AppController::beforeRender.

1 Like


I set it into AppView::initialize and it work fine

Thanks !