Re: Helper callback not working

2015-01-27 Thread Ernesto
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):

Helper callback not working

2015-01-27 Thread Ernesto
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) {