public function showAction($id, $extra) {
        $entity = $this->container->get("layout.read_handler")->get($id);
        $delete_form = $this->container->get("layout.form_handler")->createDeleteForm($id);


//        $route_collection = $this->container->get('router')->getRouteCollection()->all();
//        echo '<pre>';
//        if(is_object($route_collection))
//            print_r(get_class_methods($route_collection));
//            print_r($route_collection);
//            
//            echo '</pre>';

        $layout = str_replace(":show.html.twig", ":display.html.twig", $this->container->get("request")->get('_layout'));

        $params = array(
            "entity" => $entity
            , "extra" => $extra
        );

        return new Response($this->container->get('templating')->render($layout, $params));
    }
public function showAction($id, $extra) {
        $entity = $this->container->get("layout.read_handler")->get($id);
        $delete_form = $this->container->get("layout.form_handler")->createDeleteForm($id);


//        $route_collection = $this->container->get('router')->getRouteCollection()->all();
//        echo '<pre>';
//        if(is_object($route_collection))
//            print_r(get_class_methods($route_collection));
//            print_r($route_collection);
//            
//            echo '</pre>';

        $layout = str_replace(":show.html.twig", ":display.html.twig", $this->container->get("request")->get('_layout'));

        $params = array(
            "entity" => $entity
            , "extra" => $extra
        );

        return new Response($this->container->get('templating')->render($layout, $params));
    }
public function showAction ( $ id , $ extra ) { $ entity = $ this -> container -> get ( "layout.read_handler" ) -> get ( $ id ) ; $ delete_form = $ this -> container -> get ( "layout.form_handler" ) -> createDeleteForm ( $ id ) ; //        $route_collection = $this->container->get('router')->getRouteCollection()->all(); //        echo '<pre>'; //        if(is_object($route_collection)) //            print_r(get_class_methods($route_collection)); //            print_r($route_collection); //             //            echo '</pre>'; $ layout = str_replace ( ":show.html.twig" , ":display.html.twig" , $ this -> container -> get ( "request" ) -> get ( '_layout' ) ) ; $ params = array ( "entity" => $ entity , "extra" => $ extra ) ; return new Response ( $ this -> container -> get ( 'templating' ) -> render ( $ layout , $ params ) ) ; }
Finds and displays a layout entity.

@Route("/admin/{show}/layout/{id}/{extra}", requirements={"id" = "\d+", "extra" = ".+"}, defaults={"extra" = ""})

@Method("GET")
@Template()
Finds and displays a layout entity .