That means either you haven't added "Javascript" to your $helpers list
in your controller *or* you're missing something like a class or
database table. Starting out, your best bet is to wrap your two echo
statements in <?php if (isset($javascript)) { ...
On Feb 19, 9:43 am, "Mech7" <[EMAIL PROTECTED]> wrote:
> I have tried to add the javascript links in the way it says in many
> tutorials like:
>
> <?php
> echo ($javascript->link('prototype'));
> echo ($javascript->link('scriptaculous'));
> ?>
>
> But everytime it throws up an error?
>
> Notice: Undefined variable: javascript in E:\xampp\htdocs\portfolio\app
> \views\layouts\default.thtml on line 10
>
> Fatal error: Call to a member function link() on a non-object in E:
> \xampp\htdocs\portfolio\app\views\layouts\default.thtml on line 10
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---