This must be something unrelated to CakePHP. My local version
functions perfectly and now the production server doesn't give me the
non-object fatal error, but doesn't include my JavaScript either.
(BUT, at least the information is displayed, which is a start.)
There's something bizarre happening
On Fri, Feb 27, 2009 at 2:42 PM, Tony Thomas wrote:
>
> This problem just cropped up out of the blue for me. I made no changes
> to the AppController where the helpers are defined. I can't figure it
> out. The JavaScript file in question is clearly in the HTML, but
> everything is broken.
What's
I forgot to add that if I remove 'echo $javascript->link('js.js');'
nothing is rendered at all. Even if I hand code the link to the
JavaScript. It's truly bizarre and has broken my entire application.
On Friday afternoon no less. :-(
On Feb 27, 1:42 pm, Tony Thomas wrote:
> This problem just cro
This problem just cropped up out of the blue for me. I made no changes
to the AppController where the helpers are defined. I can't figure it
out. The JavaScript file in question is clearly in the HTML, but
everything is broken.
I had made a simple change to a different controller that seemed to
p
Maybe it will help someone in the future.
> Undefined variable: javascript [APP\views\layouts\default.ctp, line 8]
> Fatal error: Call to a member function link() on a non-object in
> xy\default.ctp on line Y
If one helper can't be loaded (typo), no helper will be loaded. So if
it says "javascr
I was just seeing if the same errors happened when you wrote the js
path a little different. . . no need to get rude about it. thats how i
like to troubleshoot. . . . .
On Nov 10, 5:03 am, Antoniov <[EMAIL PROTECTED]> wrote:
> Didn't i make it clear? There was an error says:
>
> Undefined variabl
The Javascript helper needs to be in your app_controller.php if you
include any calls to the $javascript object.
I got this error until I made that modification:
class AppController extends Controller {
// We use the Html and JavaScript helper across all of our
controllers
var $helpers
Is your controller $helpers array defined in your AppController?
Perhaps it is overwritten somewhere?
On Nov 10, 11:03 am, Antoniov <[EMAIL PROTECTED]> wrote:
> Didn't i make it clear? There was an error says:
>
> Undefined variable: javascript [APP\views\layouts\default.ctp, line 8]
> Fatal erro
Didn't i make it clear? There was an error says:
Undefined variable: javascript [APP\views\layouts\default.ctp, line 8]
Fatal error: Call to a member function link() on a non-object in D:
\xampp\htdocs\cake\tree\views\layouts\default.ctp on line 8
On Nov 10, 12:27 am, Donkeybob <[EMAIL PROTECTED
what happens when you link the the js file by using this method link('ext-2.0.1/ext-custom'); ?> ?
On Nov 9, 7:18 am, Antoniov <[EMAIL PROTECTED]> wrote:
> Undefined variable: javascript [APP\views\layouts\default.ctp, line 8]
> Fatal error: Call to a member function link() on a non-object in D:
Undefined variable: javascript [APP\views\layouts\default.ctp, line 8]
Fatal error: Call to a member function link() on a non-object in D:
\xampp\htdocs\cake\tree\views\layouts\default.ctp on line 8
Controller code:
var $components = array('RequestHandler','Security');
var $helpers = array('Form
11 matches
Mail list logo