Suppose we want to validate our forms on server side and handle it properly on client side. We can do this using AngularJs and http interceptors.
Let’s take a look on interested http status from Http extension for WebDav.
The common task in web development is handling and monitoring exception with various tools. In this article I can show how to handle and log errors in Symfony2. For this task we will use our custom exception listener.
In this article I will show you a example of custom user provider in FOSUserBundle.
Let us imagine that we want to authenticate user only by email. In the latest version of this bundle you can authenticate user by username or by username || email combination. Code is pretty simple. You need only inject custom user provider.
All we know that fat controllers is evil in MVC but where we can place additional logic ? One of the solutions in Symfony2 – events and event listeners provided by EventDispatcher Component.
Sometimes we want to load different routing file depends on user data or environment variables. Symfony has article in cookbook which explains such functionality but I can share with you how to create Custom Route Loader in Symfony2 with some nuances/pitfalls and working example.