Re: How do I add a helper to an element

2008-01-07 Thread rtconner
To respond to your email... There should be a file: /app/app_controller.php If it does not exist, copy it from the cake folder. Inside that class declare the helper that you wish to use. From there that helper should be available in all controllers. --~--~-~--~~~---

Re: How do I add a helper to an element

2008-01-07 Thread WebSpin.Biz
> I've been trying for a few hours to sort this thing out but I can't > make one of my helpers accessible to the element. try within the element: loadHelper('Html'); $Html = new HtmlHelper(); --~--~-~--~~~---~--~~ You received this message because you are

Re: How do I add a helper to an element

2008-01-07 Thread rtconner
two things.. 1. If the view can see it, so can the element 2. if this is an element you are going to use all over the place (multiple controllers) you might as well just add the helper to app_controller class. On Jan 7, 4:22 pm, DrLaban <[EMAIL PROTECTED]> wrote: > Hello all! > > I've been doing

How do I add a helper to an element

2008-01-07 Thread DrLaban
Hello all! I've been doing some Cake'ing for a while and find it lots of fun to work with seeing that it's quite fast and has a lot going for it so far. I'm having a bit of a headache with elements and helpers though, I've seen some notions about it but never quite figured it out so I thought I'd