main/core/Controller/HomeController.php
public function typeAction($type, $father = null, $region = null)
    {
        $layout = $this->manager->contentLayout($type, $father, $region, $this->canEdit());

        if ($layout) {
            return $this->render('ClarolineCoreBundle:home:layout.html.twig', $this->renderContent($layout));
        }

        return $this->render('ClarolineCoreBundle:home:error.html.twig', ['path' => $type]);
    }
public function typeAction($type, $father = null, $region = null)
    {
        $layout = $this->manager->contentLayout($type, $father, $region, $this->canEdit());

        if ($layout) {
            return $this->render('ClarolineCoreBundle:home:layout.html.twig', $this->renderContent($layout));
        }

        return $this->render('ClarolineCoreBundle:home:error.html.twig', ['path' => $type]);
    }
public function typeAction ( $ type , $ father = null , $ region = null ) { $ layout = $ this -> manager -> contentLayout ( $ type , $ father , $ region , $ this -> canEdit ( ) ) ; if ( $ layout ) { return $ this -> render ( 'ClarolineCoreBundle:home:layout.html.twig' , $ this -> renderContent ( $ layout ) ) ; } return $ this -> render ( 'ClarolineCoreBundle:home:error.html.twig' , [ 'path' => $ type ] ) ; }
Render the layout of contents by type.

@return Response
Render the layout of contents by type .