Yii Framework Forum: where/how to put the whole js library with all its extra files, css, img, and so on? - Yii Framework Forum

Jump to content

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

where/how to put the whole js library with all its extra files, css, img, and so on? Rate Topic: -----

#1 User is offline   augustin 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 43
  • Joined: 07-April 10

Posted 11 May 2010 - 06:09 AM

where/how to put the whole js library with all its extra files, css, img, and so on? Using registerScript is rather stupid idea (you have to have a call for each file), putting it in root/js also has some disadventages. what is best pratice?
0

#2 User is offline   Gevik 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 86
  • Joined: 29-November 09
  • Location:The Netherlands

Posted 11 May 2010 - 07:59 AM

View Postaugustin, on 11 May 2010 - 06:09 AM, said:

where/how to put the whole js library with all its extra files, css, img, and so on? Using registerScript is rather stupid idea (you have to have a call for each file), putting it in root/js also has some disadventages. what is best pratice?


I always include my css and js files in the main layout of my Yii app (views/layouts/main.php)

The registerScript method is mostly used for when you need to dynamically include resource files (css/js)
based on some business logic.

Look at the blog example views/layouts/main.php file.

I hope this helps.

Ext4Yii, The ExtJS extension for Yii Framework ext4yii.com

Ext4Yii API examples

Follow us on twitter



Developer of Ext4Yii Framework
1

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