Doctrine 2 + annotations and opcache

I can't describe how much I hate annotations in PHP. Rather than annotations, I would take yml over them anytime. Especially since opcode cache doesn't save them, making Doctrine freak out. Yet there are times when one has to be subjected to the annotation atrocity so here's a fix that…

#Tags: symfony2, php, PHP, doctrine

Integrating Elasticsearch in Symfony2

A great tutorial on integrating Elasticsearch in Symfony2 with FOSElastica. And a more complete look on Elasticsearch with Symfony2.…

#Tags: programming, elasticsearch, symfony2, php, autocomplete, PHP

Using a CDN with Symfony2 assets and Twig

After a bit of research, I've managed to discover how to use a CDN with Symfony2 and the Twig template engine using the Symfony2 proper way. Until now I've had to hardcode stuff and use other workarounds. Hopefully this will help someone in the future. framework: templating: engines: ['twig'] assets_…

#Tags: programming, symfony2, php, web programming, webdev, PHP

How to setup a Symfony 2 project under Windows

I’ve decided to write this short tutorial on how to setup a Symfony 2 project in Windows mainly because all the good tutorials (including the Symfony website) display most of the info for Linux environments. While this is perfectly justified, there are still people who prefer Windows (or who…

#Tags: programming, windows, symfony2, php, tutorial, webdev, PHP