If you ever needed to migrate an old project’s users to Symfony2, you probably needed to preserve their passwords. As the passwords are encoded using a specific algorithm, you have to configure your new Symfony2 project to use exactly the same method in order for the old passwords work.
Find out how to do this in this new blog post: How to Create a Custom Symfony2 Password Encoder
Here’s another usefull tip from IntelligentBee that will help you in your Symfony2 web development: How to Fix Symfony2 Ajax Login Redirect.
I hope you will find it useful! Enjoy!
A new post is available at the following link, describing how to extend the FOSUserBundle to require email confirmation when an user cahges his email suing the edit profile form: How to Enable Email Confirmation on FOSUserBundle Profile Edit
Here’s some useful post on what data types to use when you need to save latitude and longitude values to a MySQL table: How to Store Latitude and Longitude in MySQL
Here’s a new blog post where you can find a list of Linux commands I found very useful throughout the years: Linux Commands Every Web Developer Should Know
When you need to render the label value for a specific field without rendering the entire HTML label element (e. g. to use it for a placeholder) do it by using the
label form variable like described here: Symfony2: How to Get the Label for a Specific Form Field in Twig.
If you are using the Gedmo SoftDeletable Doctrine extension for entities that have some unique index columns, you will probably encounter a MySQL error when trying to add new entity with the same values as one previously deleted:
SQLSTATE: Integrity constraint violation: 1062 Duplicate entry ... for key …
Find out how to avoid this by reading this post: Symfony2: Gedmo SoftDeletable Doctrine Entities with Unique Index Columns.
Sometimes you need to check if a field or even the entire form has errors before rendering them (e.g. when adding an errors container). Find out how by reading the post I wrote here: Symfony2: How to Check If a Form Field Has Errors in Twig.
An updated Jobeet Tutorial for Symfony 2.3 is available. Enjoy!