If a particular helper or component is used my all of your controllers, then you can just add the declaration to your main appController.php
Then all controllers will have access to its parent's helper. There may be a reason to void this, but i have found no troubles. On Jul 2, 7:34 am, John Jackson <[EMAIL PROTECTED]> wrote: > How should one use a custom helper in a layout? I realise the normal > way to use a custom helper in a view is to include it in the $helpers > array in the controller of that view, so how does this apply to > layouts? Is the only way to include the helper in every controller > which uses the layout? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
