[symfony-users] Re: include_js/css VS partials

2010-07-30 Thread comb
If I would use only one css-file, I wouldn't be able to flexibly
change things later.

I solved it this way:
The layout explicitly includes all css/js in the head which are needed
from partials that are included in the the layout.
The good thing about the js/css-helper is, that it will only include a
css/js once.

Thanks!

On Jul 29, 3:11 pm, Massimiliano Arione garak...@gmail.com wrote:
 On 17 Lug, 20:15, comb sa...@gmx.net wrote:

  I found much on the web regarding the topic, but no solution! :(
  Normally one would include the css and js in the head. But if I call

  ?php use_javascript('xyz.js');
      php use_stylesheet('xyz.css') ?

  from an partial, they are not included, because the helpers in the
  head of the layout are executed already.
  Putting the helpers to the bottom of the layout includes ALL, but this
  fails caused by html-standards.

  How can I manage to include the js/css needed from partials in the
  head of the html-document, too?

 You should use just one css file (for performance issues).
 Also for performances, you should move include_javascripts from head
 to body, just in the end.

 cheers
 Massimiliano

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: include_js/css VS partials

2010-07-29 Thread comb
yes

On Jul 21, 4:41 am, Gustavo Adrian comfortablynum...@gmail.com
wrote:
 Are you using include_javascripts(); and include_stylesheets() functions
 on the head tag of the layout?

 On Tue, Jul 20, 2010 at 7:15 AM, comb sa...@gmx.net wrote:
  Symfony 1.4 + Doctrine 1.2

  Any ideas? :-)

  On 20 Jul., 11:58, Tom Ptacnik to...@tomor.cz wrote:
   Which version of Symfony do you use?

   On 17 čnc, 20:15, comb sa...@gmx.net wrote:

Hi! :)

I found much on the web regarding the topic, but no solution! :(
Normally one would include the css and js in the head. But if I call

?php use_javascript('xyz.js');
    php use_stylesheet('xyz.css') ?

from an partial, they are not included, because the helpers in the
head of the layout are executed already.
Putting the helpers to the bottom of the layout includes ALL, but this
fails caused by html-standards.

How can I manage to include the js/css needed from partials in the
head of the html-document, too?

  --
  If you want to report a vulnerability issue on symfony, please send it to
  security at symfony-project.com

  You received this message because you are subscribed to the Google
  Groups symfony users group.
  To post to this group, send email to symfony-users@googlegroups.com
  To unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en



-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: include_js/css VS partials

2010-07-29 Thread Massimiliano Arione
On 17 Lug, 20:15, comb sa...@gmx.net wrote:
 I found much on the web regarding the topic, but no solution! :(
 Normally one would include the css and js in the head. But if I call

 ?php use_javascript('xyz.js');
     php use_stylesheet('xyz.css') ?

 from an partial, they are not included, because the helpers in the
 head of the layout are executed already.
 Putting the helpers to the bottom of the layout includes ALL, but this
 fails caused by html-standards.

 How can I manage to include the js/css needed from partials in the
 head of the html-document, too?

You should use just one css file (for performance issues).
Also for performances, you should move include_javascripts from head
to body, just in the end.

cheers
Massimiliano

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: include_js/css VS partials

2010-07-20 Thread Tom Ptacnik
Which version of Symfony do you use?

On 17 čnc, 20:15, comb sa...@gmx.net wrote:
 Hi! :)

 I found much on the web regarding the topic, but no solution! :(
 Normally one would include the css and js in the head. But if I call

 ?php use_javascript('xyz.js');
     php use_stylesheet('xyz.css') ?

 from an partial, they are not included, because the helpers in the
 head of the layout are executed already.
 Putting the helpers to the bottom of the layout includes ALL, but this
 fails caused by html-standards.

 How can I manage to include the js/css needed from partials in the
 head of the html-document, too?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: include_js/css VS partials

2010-07-20 Thread comb
Symfony 1.4 + Doctrine 1.2

Any ideas? :-)

On 20 Jul., 11:58, Tom Ptacnik to...@tomor.cz wrote:
 Which version of Symfony do you use?

 On 17 čnc, 20:15, comb sa...@gmx.net wrote:

  Hi! :)

  I found much on the web regarding the topic, but no solution! :(
  Normally one would include the css and js in the head. But if I call

  ?php use_javascript('xyz.js');
      php use_stylesheet('xyz.css') ?

  from an partial, they are not included, because the helpers in the
  head of the layout are executed already.
  Putting the helpers to the bottom of the layout includes ALL, but this
  fails caused by html-standards.

  How can I manage to include the js/css needed from partials in the
  head of the html-document, too?



-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: include_js/css VS partials

2010-07-20 Thread Gustavo Adrian
Are you using include_javascripts(); and include_stylesheets() functions
on the head tag of the layout?

On Tue, Jul 20, 2010 at 7:15 AM, comb sa...@gmx.net wrote:

 Symfony 1.4 + Doctrine 1.2

 Any ideas? :-)

 On 20 Jul., 11:58, Tom Ptacnik to...@tomor.cz wrote:
  Which version of Symfony do you use?
 
  On 17 čnc, 20:15, comb sa...@gmx.net wrote:
 
   Hi! :)
 
   I found much on the web regarding the topic, but no solution! :(
   Normally one would include the css and js in the head. But if I call
 
   ?php use_javascript('xyz.js');
   php use_stylesheet('xyz.css') ?
 
   from an partial, they are not included, because the helpers in the
   head of the layout are executed already.
   Putting the helpers to the bottom of the layout includes ALL, but this
   fails caused by html-standards.
 
   How can I manage to include the js/css needed from partials in the
   head of the html-document, too?
 
 

 --
 If you want to report a vulnerability issue on symfony, please send it to
 security at symfony-project.com

 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-users@googlegroups.com
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en