I’m trying to load plugin helpers from my plugin called “CustomControls” so I’ve added the following line in my Plugin AppController but nothing happen:
public $helpers = ['Form' => ['templates' => 'CustomControls.app_form']];
When I add the same line into the main AppController of CakePHP root folder, it works so the line is not the problem and in fact, I’ve realized that my Plugin AppController is not even executed.
The code of my Plugin AppController located in “Website\plugins\CustomControls\src\Controller” is:
<?php
namespace App\Controller;
use Cake\Controller\Controller;
use Cake\Event\Event;
class CustomControlsController extends AppController {
public $helpers = ['Form' => ['templates' => 'CustomControls.app_form']];
public function initialize() {
parent::initialize();
}
}
if someone has an idea of the problem, I will be much appreciate some help.
Thanks!
Ignacio