Validation of a form before submission

前端 未结 2 1870

Using Symfony, version 2.3 and more recent, I want the user to click on a link to go to the edition page of an already existing entity and that the form which is displayed to be

2条回答
  •  清酒与你
    2021-01-25 20:35

    In place of:

    $form->submit($request->request->get($form->getName()));
    

    Try:

    $form->submit(array(), false);
    

提交回复
热议问题