Task: We specify the quantity in the form -> we transfer this quantity to another controller -> we call the payment of the robokassa -> the robokassa returns success -> we write this quantity to the database. I can not figure out how to transfer the form values to another controller. If you transfer to your own, then everything works. And vice versa, no. And also, how to transfer success to the controller? How does he take it?
UPD.
I create a form, display it on screen in twig
public function donutAction(Request $request, $donut_success = 0){ //Создаем форму $form = $this->createFormBuilder($donut) //->add('id_server', 'integer', array('label' => 'Выберите ваш сервер')) ->add('sum','integer', array('label' => 'Количество шариков')) ->add('id_server', 'entity', array( 'label' => 'Выберите ваш сервер', 'attr' => array('class' => 'browser-default'), 'required' => false, 'class' => 'M4MinecraftBundle:Mc_server', 'query_builder' => function(EntityRepository $ems_select) use($id_user){ return $ems_select->createQueryBuilder('s') ->where('s.id_user IN (:id_user)') ->setParameter('id_user', $id_user);}, 'property'=> 'name' )) ->getForm(); } After that, when I click on SUBMIT, I switch to the function of another controller
public function indexAction($sum){ } How do I make this function take the value of 'sum' from the form I sent to it?
$sum=$_REQUEST['sum']; Does not work. $request->getData also tried. There is another $form->bind($request); . It works for me in one controller, but not in it.