samedi 31 janvier 2015

Problems with js Laravel


I have strange problem with java script libraries, what included in my laravel project. My main-page route is http://localhost/MySite/public, my js scripts and JQuery work fine on this page, also everything allright with routes, what look like http://localhost/MySite/public/level1. But scipts don't work on the level2 or more routes. For example: On such route http://localhost/MySite/public/section1/section2 I'am unable to use JQuery and my own scripts.


Does anybody know how to fix this?


Here my reference to js libraries:



{{HTML::script('js/Myscript.js')}}
{{HTML::script('js/JQuery.js')}}


Also I tried a common way with <script> tag - no positive results.





Aucun commentaire:

Enregistrer un commentaire