Comment ajouter le routing à un fichier js
Bonjour, je suis débutant avec SF2. J'ai créer un blog avec Symfony2. J'essaye d'intégrer ce plugin de rating dans chaque article http://www.myjqueryplugins.com/jquery-plugin/jrating. J'ai rencontré un problème au niveau de son fichier js où je dois passer ma route. voila un appercu du code:
Code:
1 2 3 4 5 6 7
| $.fn.jRating = function (op) {
var defaults = {
/** String vars **/
bigStarsPath: '../../../bundles/portofoliofront/css/icons/stars.png', // path of the icon stars.png
smallStarsPath: '../../../bundles/portofoliofront/css/icons/small.png', // path of the icon small.png
phpPath: 'php/jRating.php', // path of the php file jRating.php
type: 'big', // can be set to 'small' or 'big' |
Comment je peu insérer ma route dans la variable "phpPath" ?