Hey
I have a Package:
'des'=>array(
'baseUrl'=> 'myassets/des/',
'css' => array( 'css/des.css'),
'js' => array( 'js/des.js'),
),
and I registered the package of the top of the view:
<?php Yii::app()->clientScript->registerPackage('des'); ?>
I have some functions in the .js file and everything worked. But now i wanted to implement some things like:
$(document).ready(function(){
...
});
but i get the error (console): "Uncaught ReferenceError: $ is not defined"
How can I implement things like that? Just with registerscript? I cannot use it in a external file?
Thx for help!
Franker