try

var $components = array('Conf', 'Javascript');

On 03/02/2008, Novice Programmer <[EMAIL PROTECTED]> wrote:
>
> This would be a very silly question.. but i am stuck so posting it..
>
> my layout works well but when i add teh following line to use some
> component in the controller...
>
> var $components = array('Conf');
>
> i start getting the errors:
> *Notice*: Undefined variable: javascript in *
> C:\www\webroot\Cake\app\views\layouts\default.thtml* on line *8*
>
> *Fatal error*: Call to a member function link() on a non-object in *
> C:\www\webroot\Cake\app\views\layouts\default.thtml* on line *8*
>
> **
> *Any help would be highly appreciable.*
>
> --
> Thanks & Regards,
> Novice (http://ishuonweb.wordpress.com/).
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to