Hello Experts,
I am using Yii2 Version 2.0.9 on Windows7 XAMPP. I am trying to register my javascript but it is not getting some strange issue.
I have included the "myFunction.js" inside web/js folder. Then I have included in the AppAsset.php as below:
public $js = [
'js/timer.js',
'js/myFunction.js',
];
Now the issue is when I trying to use this "myFunction.js" from my view file it is not functioning. But when I trying to find through "Inspect Element" I can see the
<script src="/js/timer.js"></script>
<script src="/js/myFunction.js"></script>
.
But when I am trying to access it through localhost/js, I can only able to see
'js/timer.js',
.
I am able to use timer.js but myFunction.js is not working in view page.
Any idea for this issue??
Thanks in advance.
Regards,
Sid