Posts » Symfony2

Symfony2

Using a CDN in your project is as simple as adding a second parameter to your asset() function calls in Twig and a few lines to your config file. Using a CDN has many benefits including speed and serving from a cookie-less domain. 

December 19, 2012
Symfony2

Using LESS can save you a lot of time when developing websites. This tutorial is to show you how to add LESS support to your Symfony2 project, and integrate it with Assetic. If you aren't running node, you can use a PHP version of a LESS Compiler called lessphp. This configuration will also show you how to add variables to lessphp through the configuration. 

October 26, 2012
Symfony2

Symfony2 already has some pretty useful events built in. However, sometimes you may want to be notified of your own custom events. You can use the existing event dispatcher to dispatch and listen to events in your own code.