Controller/UserController.php
public function editPasswordAction($id)
    {
        $em = $this->getDoctrine()->getManager();

        $user = $em->getRepository('ChillMainBundle:User')->find($id);

        if (!$user) {
            throw $this->createNotFoundException('Unable to find User entity.');
        }

        $editForm = $this->createEditPasswordForm($user);

        return $this->render('ChillMainBundle:User:edit_password.html.twig', array(
            'entity'      => $user,
            'edit_form'   => $editForm->createView()
        ));
    }
public function editPasswordAction($id)
    {
        $em = $this->getDoctrine()->getManager();

        $user = $em->getRepository('ChillMainBundle:User')->find($id);

        if (!$user) {
            throw $this->createNotFoundException('Unable to find User entity.');
        }

        $editForm = $this->createEditPasswordForm($user);

        return $this->render('ChillMainBundle:User:edit_password.html.twig', array(
            'entity'      => $user,
            'edit_form'   => $editForm->createView()
        ));
    }
public function editPasswordAction ( $ id ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ user = $ em -> getRepository ( 'ChillMainBundle:User' ) -> find ( $ id ) ; if ( ! $ user ) { throw $ this -> createNotFoundException ( 'Unable to find User entity.' ) ; } $ editForm = $ this -> createEditPasswordForm ( $ user ) ; return $ this -> render ( 'ChillMainBundle:User:edit_password.html.twig' , array ( 'entity' => $ user , 'edit_form' => $ editForm -> createView ( ) ) ) ; }
Displays a form to edit the user password.
Displays a form to edit the user password .