📜  在表单页面中获取上一个 url symfony 4 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:16.027000             🧑  作者: Mango

代码示例1
/* in form */


/* in controller */
if ($form->isSubmitted() && $form->isValid()) {
    $em->persist($thisEntity);
    $em->flush();
    return $this->redirect($request->request->get('referer'));
}