src/Project/todoBundle/Controller/TaskController.php
/**
     * Finds and displays a Task entity.
     *
     */
Finds and displays a Task entity.
Finds and displays a Task entity .
public function showAction($id)
    {
        $em = $this->getDoctrine()->getManager();
        $entity = $em->getRepository('ProjecttodoBundle:Task')->find($id);
        if (!$entity) {
            throw $this->createNotFoundException('Unable to find Task entity.');
        }
        $deleteForm = $this->createDeleteForm($id);
        return $this->render('ProjecttodoBundle:Task:show.html.twig', array(
            'entity'      => $entity,
            'delete_form' => $deleteForm->createView(),
        ));
    }
public function showAction ( $ id ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ entity = $ em -> getRepository ( 'ProjecttodoBundle:Task' ) -> find ( $ id ) ; if ( ! $ entity ) { throw $ this -> createNotFoundException ( 'Unable to find Task entity.' ) ; } $ deleteForm = $ this -> createDeleteForm ( $ id ) ; return $ this -> render ( 'ProjecttodoBundle:Task:show.html.twig' , array ( 'entity' => $ entity , 'delete_form' => $ deleteForm -> createView ( ) , ) ) ; }
Finds and displays a Task entity.
Finds and displays a Task entity .