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 = array('Html', 'Javascript');
On Nov 10, 2: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 error: Call to a member function link() on a non-object in D:
> \xampp\htdocs\cake\tree\views\layouts\default.ctp on line 8
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---