public function viewAction($id)
    {
        $post = $this->get('opifer.form.post_manager')->getRepository()->find($id);

        if (!$post) {
            return $this->createNotFoundException();
        }

        return $this->render($this->getParameter('opifer_form.post_view_view'), [
            'post' => $post,
        ]);
    }
public function viewAction($id)
    {
        $post = $this->get('opifer.form.post_manager')->getRepository()->find($id);

        if (!$post) {
            return $this->createNotFoundException();
        }

        return $this->render($this->getParameter('opifer_form.post_view_view'), [
            'post' => $post,
        ]);
    }
public function viewAction ( $ id ) { $ post = $ this -> get ( 'opifer.form.post_manager' ) -> getRepository ( ) -> find ( $ id ) ; if ( ! $ post ) { return $ this -> createNotFoundException ( ) ; } return $ this -> render ( $ this -> getParameter ( 'opifer_form.post_view_view' ) , [ 'post' => $ post , ] ) ; }
View a form post.

@param int $id

@return Response
View a form post .