このようにvar argurmrntをコントローラーに渡しています
return $this->redirect($this->generateUrl('user_profile', array('var' => $profile->getId())));
これは私のコントローラーです
/**
* @Route("/profile", name="user_profile")
* @Template()
*/
public function ProfileAction($var)
{
$em = $this->getDoctrine()->getEntityManager();
しかし、私はエラーが発生し続けます
コントローラー "xxxx\Controller\UserController::ProfileAction()" では、"$var" 引数に値を指定する必要があります (既定値がないか、この引数の後にオプションではない引数があるため)。