My client is offering the user to pick a picture, crop and resize it and then display it (in a <img> DOM element). If the picture is fine, the user can upload it to the server so it can be saved.  I would like to do the upload thanks to an Aj...
I am using jQuery to edit my form which is built in Symfony.  I am showing the form in jQuery dialog and then submitting it.  Data is entering correctly in database.  But I don't know whether I need to send some JSON back to jQuery. Actually I am...
Quite odd problem, sorry for asking, i'm quite new to Symfony/Twig. My route requires a mandatory region_id paramenter:  ajax_provinces_by_region:   pattern: /ajax/region/{region_id}/provinces   defaults: {_controller: SWAItaliaInCifreBundle:Ajax...
I have an embedded collection of forms, with custom data-prototype attribute. Here is how I am customizing the data-prototype   My main twig file(listingbedroomaddpage.html.twig):  <div class="bedrooms" data-prototype=         "{% filt...
I have a view called contact.html.twig. It has a form with some textfields. I want to use javascript to validate that none of the fields are empty, as well as some other rules. But I do not know where to put the .js with the definitions. I do not kno...
I'm attempting to open up data from a PHP Object (as shown below) but I'd like to be able to access this data within JavaScript to use in a graphing library.  Object in question:    What I need to be able to do is convert that into a JSON enc...
Is it possible to get object from twig array knowing that the index is a javascript variable   Mycontroller  public function showContactModalAction($iduser, $profil) {     $em = $this->getDoctrine()->getEntityManager();     $contacts = $em->...
I have installed Symfony on localhost under CentOS under VMware player. (Windows 7, 32 bit) My PHP version is 5.3.3.   CentOS is 6.5.  VMware player is 6.0.1.  When I attempt to connect with  localhost/Symfony/web/app_dev.php I get the following erro...
I am trying to get select2 library working with symfony2 script.   I am trying to implement basic example provided https://select2.github.io/examples.html page.  Thus I added to my page header:  <!-- SELECT 2-->                             <...
Is there a way to use Twig as an Assetic filter?  What I want to do is have Twig parse my JavaScript files as Twig templates, and then pass them to Assetic so that they get combined and minified in production.  You might be scratching your head think...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.