get('net15.form.forge.reasons.manager')->getByPublicKey($publicKey); $locale = $request->getLocale(); return $this->render('@FormForge/FormForgeGenerate/generate.form.html.twig',[ 'reasonPK' => $reason->getPublicKey(), 'customFieldTicket' =>$reason->getFormForgeFields()->getValues(), 'lang' => $locale ]); } public function createCustomFieldResponseAction(Request $request) { $reason = $this->get('net15.form.forge.reasons.manager')->getByPublicKey($request->get('reasonPK')); $fieldResponse = $this->get('net15.form.forge.fields.response.manager')->createFieldResponse( $reason, $reason->getFormForgeFields(), $request->get('responses'), $request->getLocale(), $request->getUser() ); dump($fieldResponse); die(); } }