Skip to content

Instantly share code, notes, and snippets.

View jjsaunier's full-sized avatar

Johann Saunier jjsaunier

View GitHub Profile
@jjsaunier
jjsaunier / prototypeCollectionSymfony2.js
Created October 8, 2013 15:47
Javascript part for Symfony2 form collection handling. Written with jQuery
$(document).ready(function() {
var $container = $('div#container');
var $addLink = $('<a href="#" id="add-link-' + $container.attr('id') +'" class="btn">Add document</a>');
$container.append($addLink);
$addLink.click(function(e) {
addElement($container);
e.preventDefault();
return false;
@jjsaunier
jjsaunier / command.md
Last active December 24, 2015 05:39
Command pool SF2
  • Generate or regenerate bootstrap.cache.php : php /vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php