Thanks for the tip, i was actually modifying app_controller from cake/
dir :)
On Dec 1, 2:14 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> Don't touch cake/ dir, copy the app_controller.php into app/, then the
> that one takes precedence, so tweak as needed.
>
> 2007/11/30, Eemerge <[EMAIL PROTECTED]>:
>
>
>
> > Ok i added that line in cake/app_controller.php and so far so good.
>
> > Thanks for the help :)
>
> > On Nov 30, 11:41 pm, "Christopher E. Franklin, Sr."
> > <[EMAIL PROTECTED]> wrote:
> > > My bad, it's at the very end of helpers section which makes no sense
> > > to me since it should be at the very top. It is also in the
> > > controllers section:
> > > -------------------
> > > $helpers
>
> > > Use this variable to have your controller load helpers into its views.
> > > The HTML helper is automatically loaded, but you can use this variable
> > > to specify a few others:
> > > var $helpers = array('Html','Ajax','Javascript');
>
> > > Remember that you will need to include the HtmlHelper in the $helpers
> > > array if you intend to use it. It is normally available by default,
> > > but if you define $helpers without it, you'll get error messages in
> > > your views.
> > > -------------------
> > > On Nov 30, 12:36 pm, Eemerge <[EMAIL PROTECTED]> wrote:
>
> > > > Thanks for the answer, one more thing though, should i use it in every
> > > > controller or just the main app controller?
>
> > > > Christopher E. Franklin, Sr. : i will check again, though i checked
> > > > several times.maybe it slipped :)
>
> > > > On Nov 30, 7:02 pm, ldb <[EMAIL PROTECTED]> wrote:
>
> > > > > G'day
>
> > > > > Hopefully I'm not misunderstanding.
>
> > > > > In your controller, make sure you have it defined. "var $helpers =
> > > > > array('Html', 'Form','Javascript', 'Ajax' );" is the full line I have
> > > > > for context.
> > > > > That will work for just Javascript.
> > > > > If you use any helpers that are not built in, just make sure you put a
> > > > > copy of the helper is in "app/views/helpers" and then add the name,
> > > > > just like you did with 'Javascript'.
>
> > > > > You should now have access.....:-)
>
> > > > > On Nov 30, 11:31 am, Eemerge <[EMAIL PROTECTED]> wrote:
>
> > > > > > Sorry to ask such a newbie question, but i didnt find anything about
> > > > > > it in the manual. Maybe i missed it, but anyway:
>
> > > > > > how do i load the javascript helper?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---