Posts in "PHP"

Configure Xdebug and PhpStorm for a Vagrant project in 5 minutes

Warning: this article concerns php5 version. If your PHP version is different, replace php5 by php/X.Y in paths (X.Y is your PHP version) and phpX.Y in command. For example : sudo apt-get install php5-xdebug becomes sudo apt-get install php5.6-xdebug /etc/php5/mods-available/xdebug.ini becomes /etc/php/5.6/mods-available/xdebug.ini I love debuggers. They allow me to understand deep down in my code why… Continue reading

JavaScript code to deal with Symfony form collections

Each time you use form collections in Symfony, you need to write some JavaScript. The cookbook If you don’t know what form collections are you won’t be interested in this article now. However you can read the cookbook out of curiosity and come back read this article later. Doing form collections with Symfony can be a tedious task because Symfony doesn’t… Continue reading