El mar, 05-02-2008 a las 08:43 -0800, Ithaka escribió:
> Hi,
Hello?
>
> I'm having a problem with javascript in cakephp 1.2. As if that
> wasn't obvious enough.
>
> The Problem:
> I wish to load javascript in the layout for my buttons and other
> little functions i will implement later on. I've been looking for the
> past 2 days and i always see the same thing.
> $javascript->link('script') and $_scripts_for_layout. So i try doing
> these in my layout yet the javascript does not load. I keep getting
> the error: undefined function: javascript and call to a member
> function link() on a non object in... Another small problem i found
> was that there are so many js folders in place, i don't know which one
> to put them in. I assumed it was in webroot/js/ but to make sure, i
> put them everywehre i could.
>
> Thank you in advance to everyone that leaves a positive response and/
> or solution.
>
Are you loading the JavaScript Helper on the controller?
--
No a la matriculación obligatoria:
http://noalamatricula.wordpress.com
Se libre usando Software Libre:
http://www.gnu.org/
Mi Blog:
http://juanfgs.wordpress.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---