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.

How to get form values in Symfony2 controller

I am using a login form on Symfony2 with the following controller code public function loginAction(Request $request) { $user = new …

forms symfony
How to get current route in Symfony 2?

How do I get the current route in Symfony 2? For example, routing.yml: somePage: pattern: /page/ defaults: { _controller: "AcmeBundle:Test:…

php symfony routing symfony-routing
How to set default value for form field in Symfony2?

Is there an easy way to set a default value for text form field?

php symfony
How to sort findAll Doctrine's method?

I've been reading Doctrine's documentation, but I haven't been able to find a way to sort findAll() Results. I'm using …

symfony doctrine-orm
How can I send JSON response in symfony2 controller

I am using jQuery to edit my form which is built in Symfony. I am showing the form in jQuery …

php javascript json symfony
How to get the root dir of the Symfony2 application?

What is the best way to get the root app directory from inside the controller? Is it possible to get …

php symfony symfony-2.8 symfony-config-component
How do I read configuration settings from Symfony2 config.yml?

I have added a setting to my config.yml file as such: app.config: contact_email: [email protected] ... For …

symfony configuration
How to get config parameters in Symfony2 Twig Templates

I have a Symfony2 Twig template. I want to output the value of a config parameter in this twig template (…

symfony configuration twig
On delete cascade with doctrine2

I'm trying to make a simple example in order to learn how to delete a row from a parent table …

php doctrine-orm symfony cascading-deletes
How do I get the entity that represents the current user in Symfony2?

I am using the Symfony security setup. Everything works fine, but I don't know how to do one important thing: …

entity-framework security symfony