I know, it sucks. I think I did manage to achieve a similar result in
a very roundabout way in one of my older applications, but it's not
really worth the hassle; Cake just isn't set up for it.

On Jun 8, 7:15 am, Dima <[email protected]> wrote:
> My original implementation did exactly what you describe but I was
> hoping that it could be done otherwise.  Guess not.
>
> Thanks,
> Dima
>
> On Jun 7, 8:12 pm, calvin <[email protected]> wrote:
>
> > You only use echo when you're linking them inline. So you would never
> > have something like:
>
> > echo $javascript->link($scriptname, false);
>
> > It would either be:
>
> > echo $javascript->link($scriptname);
>
> > or:
>
> > $javascript->link($scriptname, false);
>
> > Unfortunately, you can't use the $scripts_for_layout variable in the
> > layout or elements included from the layout because usually by that
> > point the variable has already been printed out.
>
> > Your best bet would be to just place inline link calls in the header
> > section of the layout.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to