If I remember correctly (some) Error pages do not load from app controller, so it is safer if for the error pages you explicitly load the helpers you need.
On Monday, May 11, 2015 at 6:25:25 PM UTC+2, LDSign wrote: > > Hi > > Ive set up some custom error pages which include the main layout > (including navigation) for e.g. "page not found" errors. In the > header-element included I make use of a custom helper (MyTextHelper extends > TextHelper). > > Unfortunatley this custom helper is not used in the error page resulting > in a warning "call_user_func_array() expects parameter 1 to be a valid > callback". > > How can I make this custom helper available on error pages? > > CakePHP 2.6.4 > > Thanks, > Frank > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
