Yii Framework Forum: defining position of rendered script or css in related registerScript() and registerCss() - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

defining position of rendered script or css in related registerScript() and registerCss() Rate Topic: -----

#1 User is offline   Yuriy Poluda 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 29-January 09

Posted 02 June 2012 - 02:29 PM

Hi everybody!

I think that it will be usefull to control position of render script fragment or css code in functions renderScript(), renderCss().

This is necessary when you need script fragments or styles to be performed in some sequence.

May be renderScriptFile(), renderCssFile() also need the parameter.



The example:

public CClientScript registerCss(string $id, string $css, string $media='', integer $position=0)
public CClientScript registerCssFile(string $url, string $media='', integer $position=0)
...

Yuriy Poluda
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users