$this->loadHelper() should do the trick
On Monday, May 11, 2015 at 6:42:27 PM UTC+2, LDSign wrote:
-- On Monday, May 11, 2015 at 6:42:27 PM UTC+2, LDSign wrote:
Ok, thanks :)How can I do this (overriding a core helper on these error pages)?Regards,Frank
Am Montag, 11. Mai 2015 18:25:25 UTC+2 schrieb LDSign:HiIve 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.4Thanks,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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment