Top "Symfony-2.3" questions

This is the Symfony 2.3.x specific tag.

How do I read from parameters.yml in a controller in symfony2?

I have put a couple of custom variables in my app/config/parameters.yml. parameters: api_pass: apipass api_user: …

symfony symfony-2.3
Call PHP function from Twig template

I have a function in my controller that returns array of entities so in my twig template I do this …

symfony twig symfony-2.3
How to change form field value in symfony 2

I have a form like below: class ItemType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder // ... ->…

symfony-forms symfony-2.3
How to give container as argument to services

in my services constructor public function __construct( EntityManager $entityManager, SecurityContextInterface $securityContext) { $this->securityContext = $securityContext; $this->entityManager = $entityManager; I …

php symfony symfony-2.3
Forgot password function fosuserbundle

I have been googling for a couple hours now and cannot find any information on how to implement the "Forgot …

fosuserbundle symfony-2.3
Error: "No route found for "GET /web/app_dev.php""

I have created a bundle using the command php app/console generate:bundle this add the bundle in /app/AppKernel.…

symfony symfony-2.3 symfony-routing
Symfony2 - form_start function customise in twig

Form helpers form_start and form_end are useful in twig: {{ form_start(form) }} {{ form_end(form) }} I can customise …

forms symfony twig symfony-forms symfony-2.3
How does the login check_path route work without default controller/action?

I am working on symfony 2.3 project having the following routing code just2_frontend_logincheck: pattern: /login_check It doesn't have …

symfony yaml symfony-2.3 symfony-routing
Symfony - How to access entity's repository

There are several ways that we can access the entity's repository in Symfony2 controllers or services which each has its …

symfony design-patterns doctrine-orm doctrine symfony-2.3
Symfony2 -> Twig -> Form -> Field -> Set rendered = true

i have a simple problem. I have a form with a field for example: $builder ->add('x') -&…

symfony twig symfony-forms symfony-2.2 symfony-2.3