wow...  defining java script in the list of your components fixes as you
guys suggested, but this leads me to ask another question. Here I go:
Isn't it like that all the defined components are loaded by default. I
expected javascript like html to be loaded by default. is it some thing to
do with performance that cake does not load all the defined components by
default?

Thanks.


On 2/4/08, AD7six <[EMAIL PROTECTED]> wrote:
>
>
>
>
> 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
> >
>


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