Is the javascript helper loaded from the controller? Note that only HTML
helper is loaded by defined. you need to specify javascript helper in the
controller to use the variable $javascript.

On 1/28/08, bob <[EMAIL PROTECTED]> wrote:
>
> In latest release of Cakephp 1.2, i am trying to do
>
> echo $javascript->link(array('prototype','scriptaculous.js?load=effects'))
> in my default.ctp file in layouts folder
>
> But i get the following errors:
>
> Undefined variable: javascript [*APP\views\layouts\default.ctp*, line *43*
> ]
>
> *Fatal error*: Call to a member function link() on a non-object in *
> C:\xampp\htdocs\app\views\layouts\default.ctp* on line *43*
> **
> What is the problem? thanks
>
> >
>


-- 
Thanks & Regards,
Novice (http://ishuonweb.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to