Actually, sorry I had found out how to do it!
I just added the line:
var $helpers = array(Html, Form, Javascript, Ajax);
to my app_controller.php file and it's working fine.
Sorry for wasting resources!
On Oct 16, 2:25 pm, George @ Dogma [EMAIL PROTECTED] wrote:
Hey everyone,
I think I have broken my CakePHP application that I am making... As
you all very well know, CakePHP throws error messages when it comes
across a missing action, controller, view, etc. However, I have done
something to my default.thtml file and now this does not function.
If I was to go to a URL within my project, eg.www.example.com/fdjgddf
instead ofwww.example.com/login(fdjgddf isn't an action or a
controller), I am faced with the following:
Fatal error: Call to a member function on a non-object in /app/views/
layouts/default.thtml on line 5
Line 5 in my default.thtml file is:
?php echo $javascript-link('prototype'); ?
It seems that it's not loading up the JavascriptHelper for some
reason. It seems to load HtmlHelper fine. Mind you, when an actual
controller / action has been referenced (eg.www.example.com/login),
everything loads fine, including JavascriptHelper -- this only happens
when there's a missing controller / action / view.
Is there a way to fix this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---