Symfony2: Doctrine 2 Entity Listeners

When working on a little more complex application is inevitable that we'll get to the point when we need to trigger an action when something happens somewhere in our application. Quite often is the case that we need to bind our actions to an entity, like for example notify all subscribers to a blog post that the post they are following has changed.

Read more


forms and ajax

Symfony2: Forms and Ajax

Making Ajax calls is a trivial task nowadays for any web developer, and I'm sure it's no enigma for all of you how to do it using your favourite Javascript library or framework like jQuery, Angular, Backbone, you name it.

 

Forms and ajax

But how do we handle these requests in the backend? More specifically, how should we write our controllers to take full advantage of our preferred framework, Symfony 2 in my case, and create a great UX for our consumers (with errors displayed nicely and effortless) and a great feeling for our colleagues with whom we share the code (by using status codes and promises).

Read more


Unknown Column Type "json" Requested Error After Removing SonataUserBundle And FOSUserBundle

While playing around with SonataUserBundle and FOSUserBundle I quickly found out that I had to remove both of them. Long story short, it seems that one of them is not yet supporting the latest version of the other.

Unknown column type json requested

Read more


How to Quickly Switch the Apache2 VirtualHost

If you're just a little bit like me, then you'll love working with only a single active VirtualHost on apache2. Since switching from one server to another needs a lot of Linux terminal commands, I've built a small bash script that will hopefully ease the process.

How to Quickly Switch the Apache2 VirtualHost

Read more


The Chain Design Pattern

Today's article is meant to show you how to go from plain-text tasks to a collection of classes that are meant to work together.Read more