the first place to try. I can imagine that not working so instead you
can override the constructor of that one controller and remove the
helper from the helpers array there. At least it worked for modifying
components under Cake 1.1 a few years ago.
/Martin
On Feb 4, 12:31 pm, Rodrigo Rodrigues Moyle <rodrig...@gmail.com>
wrote:
> Cake automatically load the helpers defined in app_controller even if you
> define var $helpers in especific controller.
>
> On Wed, Feb 4, 2009 at 9:26 AM, maxmil <max...@gmail.com> wrote:
>
> > I have a situation where i want a certain helper included in all of my
> > controllers except one.
>
> > I would like to be able to put the helper in my app_controller and
> > explicitly remove it from the one controller that doesn't use it
> > rather than having to manually add it to all but one of my
> > controllers.
>
> > The $helper property of each controller is an array of strings not
> > objects removing the helper from there does not work.
>
> > Does anyone know the right way to do it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment