javascript loadin problem

hi there

i loaded my file this way:

$this->registerJsFile(Yii::getAlias('@app') . '\jsAssets\addToCard.js',['position' => \yii\web\View::POS_END]);

and this is the addToCard.js file content :




by this tried to load jQuery before addToCard.js in appAssets.php :

public $jsOptions = [

        'position' => \yii\web\View::POS_HEAD,


the addToCard.js loaded this way( in view source ):

</script><script src="C:\xampp\htdocs\shopCenter\frontend\jsAssets\addToCard.js"></script>

no error in console in inspect element

any suggestion?

My link