On Feb 3, 9:00 pm, "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.*
I'd put $10 on you seeing "Missing Component" as the title for the
page ;).
define var $helpers = array('Javascript'); in your app controller,
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---