Controller/StateController.php
/**
     * Finds and displays a State entity.
     *
     * @Route("/{state}/show", name="state_show")
     *
     * @Method("GET")
     * @Template("LthrtCCSBundle:State:show.html.twig")
     */
Finds and displays a State entity.


Finds and displays a State entity .
public function showAction(
        Request $request,
        State   $state
    ) {
        $this->notFound($state);
        $deleteForm = $this->createDeleteForm($state);
        return [
            'state'       => $state,
            'delete_form' => $deleteForm->createView(),
        ];
    }
public function showAction ( Request $ request , State $ state ) { $ this -> notFound ( $ state ) ; $ deleteForm = $ this -> createDeleteForm ( $ state ) ; return [ 'state' => $ state , 'delete_form' => $ deleteForm -> createView ( ) , ] ; }
Finds and displays a State entity.
Finds and displays a State entity .