NVM i found out why.
callbacks are disabled in FormHelper (for performance reasons, maybe?)
i added this to MyFormHelper
public function implementedEvents () {
return ['View.afterLayout' = 'afterLayout'];
}
and now my callback is working... but i'm getting this warning:
Warning (4096):
Hi all
i made a custom FormHelper and the callbacks are not working
did i miss something?
here's my code
?php
namespace App\View\Helper;
use Cake\View\Helper\FormHelper;
class MyFormHelper extends FormHelper
{
public function afterLayout(Event $event, $layoutFile)
{