The bbq script is available as a core script and registering it will also load jquery.js. So to use bbq you simply need to do this:
Yii::app()->clientScript->registerCoreScript('bbq');
The assets folder is dynamic in nature, and it is used to store scripts, css, images in a web-accessible directory. It is automatically populated by the various Yii widgets, and also when you call registerCoreScript
. Because of these reasons and more you shouldn't be relying on the assets folder to include js, css, images, but instead let the framework include it for you.
I couldn't find a list of the core packages in the docs, but it can be seen in the source file: framework/web/js/packages.php.
Incase you want this in a view with a CGridView
, then let me tell you that CGridView
loads this script automatically, and you don't have to register it again.