Simple Search Engine converted from flat html+php to Symfony2