Google Groups Home
Help | Sign in
Message from discussion Problem with Javascript helper in default.ctp
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
davidgregan@gmail.com  
View profile
 More options May 9, 5:44 pm
From: "davidgre...@gmail.com" <davidgre...@gmail.com>
Date: Fri, 9 May 2008 14:44:01 -0700 (PDT)
Local: Fri, May 9 2008 5:44 pm
Subject: Re: Problem with Javascript helper in default.ctp
try posting the code from your view that is causing this error (line
14 of default.ctp)

Dave

On May 8, 6:01 pm, mdrisser <mdris...@gmail.com> wrote:

> Hi all,
> I'm having a problem I can't quite seem to figure out. I'm trying to
> use the Javascript helper in app/views/layouts/default.ctp but keep
> getting an error:

> Undefined variable: javascript [APP\views\layouts\default.ctp, line
> 14]
> Fatal error: Call to a member function link() on a non-object in C:
> \path\to\app\views\layouts\default.ctp on line 14

> I tried adding the following to app/app_controller.php
> class AppController extends Controller {
>         var $helpers = array('Html', 'Javascript', 'Form');

> }

> But it doesn't pick up the Javascript helper.

> Could someone help me out with this?

> Thanks.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google