Quantcast
Channel: Grafikart | Derniers Sujets du forum
Viewing all articles
Browse latest Browse all 1542

Comment ajouter le routing à un fichier js

$
0
0
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 jRating . J'ai rencontré un problème au niveau de son fichier js où je dois passer ma route. voila un appercu du code:
 $.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: "{{ path('portofolio_front_rating') }}",
            type: 'big', // can be set to 'small' or 'big'


voila l'emplacement du fichier routing et controlleur:

l'erreur:
http://localhost/Portofolio/web/app_dev.php/blog/article/%7B%7B%20path('portofolio_front_rating')%20%7D%7D
Comment je peu insérer ma route dans la variable "phpPath" ?

Viewing all articles
Browse latest Browse all 1542

Trending Articles