Top "Symfony" questions

Symfony refers to both a PHP framework for building web applications as well as a set of components on which the framework is built.

Symfony2: How to get user Object inside controller when using FOSUserBundle?

I'm using FOSUserBundle to authenticate my users. I'm trying to get the user object inside the Controller to register a …

symfony fosuserbundle
Why composer install timeouts after 300 seconds?

I have small project made in symfony2 when I try to build it on my server it's always fails when …

symfony timeout composer-php
Doctrine 2 Query with LIKE

I have this code for query: $repository = $em->getRepository('AcmeCrawlerBundle:Trainings'); $query = $repository->createQueryBuilder('p') ->where(…

sql symfony doctrine-orm
Add error to Symfony 2 form element

I check some validation in my controller. And I want to add error to specific element of my form on …

php validation symfony symfony-forms
Id attribute on form tag symfony

I would like to define a id attribute on my symfony2 forms. I've tried with this in my twig template: {{ …

symfony twig
The method name must start with either findBy or findOneBy. Undefined method Symfony?

I am working through part4 of Symfony2, and while updating the controller and helper class code i got the following …

symfony
How to render a checkbox that is checked by default with the symfony2 Form Builder?

I have not found any easy way to accomplish to simply check a Checkbox by default. That can not be …

checkbox symfony formbuilder
What do scale and precision mean when specifying a decimal field type in Doctrine 2?

I'm creating a decimal field to hold a financial figure in Doctrine2 for my Symfony2 application. Currently, it looks like …

database symfony orm types doctrine-orm
How can i have optional parameters in Symfony2 route

I have this code below : /** * Lists all User entities. * * @Route("/{cid}",defaults={"cid" = null},name="user") * @Template() */ public function indexAction($…

php symfony routing
How to use Sessions in Symfony?

Like in classic PHP we use the magic variables to start and create sessions, so how to do that in …

php symfony symfony1 symfony-1.4