Thanks, got it working. I called Cache::clear() which didn't seem to
do anything, and then called clearCache() in the layout which worked.
I'm rather new to cakePHP and OO PHP so I'm not sure if I used
Cache::clear() wrong.

On Jul 2, 3:52 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote:
> It goes it /app/app_controller.php but try clearing the app cache
> after you put the file there if cake doesn't recognize it.
>
> On Jul 2, 3:52 pm, John Jackson <[EMAIL PROTECTED]> wrote:
>
> > Thanks, where does the main app_controller.php file go in RC2? I have
> > tried /app/app_controller.php and /app/controllers/app_controller.php
> > without success
>
> > On Jul 2, 2:07 pm, Smelly_Eddie <[EMAIL PROTECTED]> wrote:
>
> > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to