Tagged Questions
2
votes
0answers
19 views
Assetic javascripts creating empty file from a non-empty source (inside bundle)
I am using Assetic within a twig template to specify 2 JS files to utilize from my bundle
{
% javascripts
'@JiraExtendedReportsBundle/Resources/public/js/jquery-2.0.3.min.js'
...
2
votes
0answers
103 views
XSS Basic Understanding
I'm using Symfony2 / Twig / Doctrine.
I'm looking at security on my site and in particular preventing XSS attacks, but I can't see what more I can do.
Persistent
I use Doctrine and always ensure I ...
2
votes
0answers
102 views
Sprocketsfilter in assetic - requirements and example
I'm working with Symfony 2 with Twig and assetic file manager.
I have high number of javascript files that have many dependencies. (Javascript prototypal inheritance)
I saw sprockets in action, and I ...
1
vote
0answers
813 views
FOSJSRoutingBundle : “Route xxx does not exist”
I'm facing a really weird problem with FOSJSRoutingBundle :
First of all, here is my configuration : I'm working on Symfony 2.0.23 and with JQuery, on Windows 7 64 bits with a WAMP (Apache 2.4.2 and ...
1
vote
0answers
178 views
Symfony2, periodic JS failure with FOS Routing
Sometimes my JS fails to load dynamically via Symfony2, the URLs look like;
/app_dev.php/js/d5fb045_part_1_main_4.js
Looking at this URL using dev tools shows that the JS is returning;
Fatal ...
0
votes
0answers
9 views
Symfony2, assetic and Google Closure Templates
I am working on a project based on Symfony2 and I am using Google Closure Templates to manage HTML from javascript. I wrote a filter for assetic which nicely compile *.soy files into *.js files and ...
0
votes
0answers
24 views
Include Javascript in Symfony2 form widgets
I have created my own little Symfony2 form type. For this to work properly, I need to include a js library. While that was a simple task when using this new form type in a single web application, it ...
0
votes
0answers
14 views
Google Closure Templates with Symfony2
I would like to use Google Closure Templates (*.soy files)in my Symfony2 project. I know that assetic supports standard compiler.jar from Google Closure Tools to minify js files, but I can't find ...
0
votes
0answers
36 views
Persist all entities in an embedded form
I have two class : Grade and Holiday.
A Grade can contains zero, one or many Holidays.
So I have a form that looks like this :
I can add or delete holidays with some Javascript.
The issue is in ...
0
votes
0answers
158 views
how to get value from dynamic select boxes and pass this value to ajax data?
I made a dynamic table row in symfony2. When I select an option from the select box, I want to pass the value to the Ajax and store the corresponding result in dynamic fields like description, ...
0
votes
0answers
32 views
Symfony Assetic - part_1 in url
Okay so I've been searching all over for some input into this but haven't found anything to help directly (only mentions of this problem in relation to something else).
Basically I'm having problems ...
0
votes
0answers
27 views
Symfony2 Assetic Custom File Combiner
I'm working on a system which needs to have a number of files combined together with a custom combiner (i.e., not just glued together with Assetic).
The combiner is primarily to handle ordering them ...
0
votes
0answers
45 views
How can I load google maps api with ajax inside symfony2 templates
I´m working in a project with symfony2 and google maps. I have an inheritance of twig templates.
layout_user.html.twig is the father where I have the div in which I load the google maps.
...
0
votes
0answers
46 views
How to generate the string with variable in symfony
I want to use the code:
document.getElementById("btn").setAttribute("href", "{{ path('deletecontact', { 'id': "idx" }) }}");
to add attribute to the button to delete the chosed contact.
The idx ...
0
votes
0answers
72 views
Get the autogenerated variable of Ivory Google Maps Bundle for symfony 2.3
today I start using the bundle ivory google maps and I find all so simple and very easy, but now i want to do some tries from javascript and for this i need the actual variable of the map, that the ...