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

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.