Bundle/BusinessPageBundle/Controller/BusinessTemplateController.php
public function showAction(BusinessTemplate $view)
    {
        //add the view to twig
        $this->get('twig')->addGlobal('view', $view);
        $view->setReference(new ViewReference($view->getId()));

        return $this->container->get('victoire_page.page_helper')->renderPage($view);
    }
public function showAction(BusinessTemplate $view)
    {
        //add the view to twig
        $this->get('twig')->addGlobal('view', $view);
        $view->setReference(new ViewReference($view->getId()));

        return $this->container->get('victoire_page.page_helper')->renderPage($view);
    }
public function showAction ( BusinessTemplate $ view ) { //add the view to twig $ this -> get ( 'twig' ) -> addGlobal ( 'view' , $ view ) ; $ view -> setReference ( new ViewReference ( $ view -> getId ( ) ) ) ; return $ this -> container -> get ( 'victoire_page.page_helper' ) -> renderPage ( $ view ) ; }
Show BusinessTemplate.

@param BusinessTemplate $view

@Route("/show/{id}", name="victoire_business_template_show")
@ParamConverter("template", class="VictoireBusinessPageBundle:BusinessTemplate")

@return Response
Show BusinessTemplate .