Symfony

Symfony is a set of reusable php components and a PHP framework for web projects.

How to retrieve the name of the current module in Symfony 1.4
Learn how to retrieve the name of the current module within an action or template in Symfony 1.4
How to redirect an user to a specific page according to his role in Symfony 2.8 using an EventListener
Learn how to implement a login listener that redirects an user automatically to a specific route according to his role.
How to get and display all the errors of an invalid form in Symfony 1.4
Learn how to retrieve all the errors of an invalid form in Symfony 1.4 easily
How to return a JSON response with Symfony 1.4
Learn how to return a JSON string as response from an action in Symfony 1.4
How to print safely a string variable from PHP in JavaScript with Symfony 1.4
Learn how to safely print a string from the PHP context to a JavaScript context.
Implementing a custom 500 error page for exceptions in Symfony 1.4
Learn how to implement a custom 500 error page for exceptions in the production environment in Symfony 1.4
How to signin manually an user in Symfony 1.4 with the sfGuardPlugin
Learn how to signin manually an user from a controller without knowing his password in Symfony 1.4
How to detect the city, country and locale from a visitor's IP using the Free GeoLite Database in Symfony 3
Learn how to use the Free GeoLite Databases to detect the country, city and locale from your visitor's IP in Symfony 3.
How to convert a webm video to mp4 using FFMpeg in Symfony 3
Learn how to convert a webm video to mp4 easily using FFMpeg in Symfony 3
Implementing global non-static helper functions in Symfony 1.4
Learn how the helper methods work in Symfony 1.4 and how to implement them.