Yes Stan, thats exactly what I've been looking for :)
Thanks a lot.
Elemental is also nice, I forgot about it.
Thank You all!
On 17 Paź, 23:31, Stan <[EMAIL PROTECTED]> wrote:
> Both $html->css() and $javascript->link() have an $inline parameter,
> and if you set that to false they will not be
Both $html->css() and $javascript->link() have an $inline parameter,
and if you set that to false they will not be displayed inline, but
added to a $scripts_for_layout variable. Then, you just need in your , and you're good to go.
I think that's what you're asking for, right?
Stan
On Oct 17, 4
see this
http://snook.ca/archives/cakephp/elemental_conditional_content_with_cakephp/
2008/10/17 Robert <[EMAIL PROTECTED]>
>
> I want to add some scripts from views, elements, helpers to the
> header. Header is in layout of course. What is the proper way to do
> that?
>
> Two examples:
>
> - css
> - css - I want to include some css files only when I use Elements or
> helpers they are used by. Is it any way to do this in cakephp? Or have
> I include all css files into all pages?
>
I prefer to include all css scripts in the head. It has tow
advantages:
- The includes are made in one place
I want to add some scripts from views, elements, helpers to the
header. Header is in layout of course. What is the proper way to do
that?
Two examples:
- css - I want to include some css files only when I use Elements or
helpers they are used by. Is it any way to do this in cakephp? Or have
I in