Questions tagged [symfony-2.5]

This is the Symfony 2.5.x specific tag. Use it in addition to the symfony2 tag if your question is specific to Symfony 2.5.x — not just 2.x.

Symfony is a PHP full-stack web framework developed and maintained by Sensio Labs.

Information

This tag is specific for the 2.5 version of Symfony, which was released on the 1st June 2014. See the tag for general Symfony 2.x questions.

As of 1 June 2014, the latest stable release of Symfony 2.5 is version 2.5.0.

Living on the edge

There are a set of interesting links on the symfony blog about what's new in this version:

Useful links

152 questions
4
votes
4 answers

Symfony2 array of forms?

Is it possible to create and render and array of forms I know about collections but they don't really fit in my idea? What I want is something like this Controller $data=$em->findAll(); $Forms=$this->createForm(new SomeType,$data); return…
harisk92
  • 1,088
  • 1
  • 14
  • 24
4
votes
5 answers

How to debug a Symfony2 form?

I'm creating a register page to create a new user based on FOSUserBundle. I go this message on the top f the form every time I submit the new user form: This value should not be blank. Apparently this is a global message and it's not linked to a…
user1115363
3
votes
2 answers

Symfony2 kernel exception event not handling fatal error exception in production mode

I make a listener for exception handling. Below is my code services.yml kernel.listener.prod_exception_listener: class: MyBundle\Listener\ExceptionListener tags: - { name: kernel.event_listener, event: kernel.exception, method:…
Azam Alvi
  • 6,918
  • 8
  • 62
  • 89
3
votes
1 answer

Symfony2 gives a ParameterNotFoundException on a database driver

Lately I have created an extra database with it's own user. Therefore I have created an extra database driver in the parameters.yml. This is, as far as I know, the standard approach for this kind of situations. So far, it works. In one of the…
3
votes
2 answers

knp menu bundle symfony

I have been using a fos user Bundle where each of user is assigned to a group and each group is provided with a specific role as per fos user bundle everything works fine. Now to make a menu system I am trying to use Knp menu bundle.Now to make menu…
Sagar Chapagain
  • 375
  • 4
  • 13
3
votes
3 answers

The check_path for login method is not matched by the firewall pattern

I'm configuring the security layer for a login form on Symfony2, but this error keeps emerging: InvalidConfigurationException: Invalid configuration for path "security.firewalls.gestor_area": The check_path "^/ES/gestor/login_check" for login…
3
votes
1 answer

Symfony 2.5 - Data transformer and View transformer

I'm working on a symfony 2.5 project, I used reverse engineering (doctrine:mapping:import) and I need a data transformer on a form that saves the patient in order of make an appointment in the database but I need the user to write his identification…
Carlos Delgado
  • 2,930
  • 4
  • 23
  • 49
3
votes
2 answers

symfony2 empty session id in service

I use symfony 2.5, and I have next service for monolog.
denys281
  • 2,004
  • 2
  • 19
  • 38
3
votes
1 answer

Register and Reset form always available

today I have noticed I can always access the register and reset form regardless if I am authenticated or not. Here is my security.yml: security: encoders: FOS\UserBundle\Model\UserInterface: sha512 role_hierarchy: …
CSchulz
  • 10,882
  • 11
  • 60
  • 114
3
votes
2 answers

How can I make Symfony2 ignore Guzzle Client bad response exception in my custom controller?

function order_confirmationAction($order,$token) { $client = new \GuzzleHttp\Client(); $answer = $client->post("http://www.fullcommerce.com/rest/public/Qtyresponse", array('body' => $order) ); …
3
votes
1 answer

Entity Field Type with Entity Repository and query_builder

I am using entity field type query_builder to show in drop down list only these types which aren't parents (parent_id == null). My ProductionType entity:
RydelHouse
  • 362
  • 1
  • 4
  • 23
3
votes
1 answer

Symfony form submission doesn't work

I've been following this tutorial to create a registration form with Symfony 2.5. The only difference I made, was an additional field for the username in my User class and rendering it in the UserType form. When submitting the form to the…
padarom
  • 3,529
  • 5
  • 33
  • 57
3
votes
2 answers

SonataAdminBundle: Redirect to list view doesn't save pagination

I have a project using Symfony 2.5 with SonataAdminBundle (http://sonata-project.org/) with a list of Posts, using pagination and list filtering that comes generic with the bundle. If I go to n-th page using pagination, then go to 'Edit' page and…
Ulugbek
  • 164
  • 1
  • 8
3
votes
4 answers

Symfony - FOSUserBundle registration validation not working

I'm using FOSUserBundle, I'm trying to validate email and username if they're already exist or not. Otherwise I get MySQL duplicate entry error. I've extended the registration form, added the Registration validation group. But still no good, I…
Rafael Adel
  • 7,673
  • 25
  • 77
  • 118
2
votes
0 answers

Symfony 2.5: Custom 404 error page on ResourceNotFound

I want to implement logic that shows a custom 404 error page on a Symfony environment when there's no route found and a NotFoundHttpException has been thrown. I've followed the cookbook solution line by line, also number of other sources, including…
Nat Naydenova
  • 771
  • 2
  • 12
  • 30
1
2
3
10 11