main/core/Controller/HomeController.php
public function typesAction()
    {
        $types = $this->manager->getTypes();

        $response = $this->render(
            'ClarolineCoreBundle:home:home.html.twig',
            [
                'type' => '_pages',
                'region' => $this->renderRegions($this->manager->getRegionContents()),
                'content' => $this->render(
                    'ClarolineCoreBundle:home:types.html.twig',
                    ['types' => $types, 'hasCustomTemplates' => $this->homeService->hasCustomTemplates()]
                )->getContent(),
            ]
        );
        $response->headers->addCacheControlDirective('no-cache', true);
        $response->headers->addCacheControlDirective('max-age', 0);
        $response->headers->addCacheControlDirective('must-revalidate', true);
        $response->headers->addCacheControlDirective('no-store', true);
        $response->headers->addCacheControlDirective('expires', '-1');

        return $response;
    }
public function typesAction()
    {
        $types = $this->manager->getTypes();

        $response = $this->render(
            'ClarolineCoreBundle:home:home.html.twig',
            [
                'type' => '_pages',
                'region' => $this->renderRegions($this->manager->getRegionContents()),
                'content' => $this->render(
                    'ClarolineCoreBundle:home:types.html.twig',
                    ['types' => $types, 'hasCustomTemplates' => $this->homeService->hasCustomTemplates()]
                )->getContent(),
            ]
        );
        $response->headers->addCacheControlDirective('no-cache', true);
        $response->headers->addCacheControlDirective('max-age', 0);
        $response->headers->addCacheControlDirective('must-revalidate', true);
        $response->headers->addCacheControlDirective('no-store', true);
        $response->headers->addCacheControlDirective('expires', '-1');

        return $response;
    }
public function typesAction ( ) { $ types = $ this -> manager -> getTypes ( ) ; $ response = $ this -> render ( 'ClarolineCoreBundle:home:home.html.twig' , [ 'type' => '_pages' , 'region' => $ this -> renderRegions ( $ this -> manager -> getRegionContents ( ) ) , 'content' => $ this -> render ( 'ClarolineCoreBundle:home:types.html.twig' , [ 'types' => $ types , 'hasCustomTemplates' => $ this -> homeService -> hasCustomTemplates ( ) ] ) -> getContent ( ) , ] ) ; $ response -> headers -> addCacheControlDirective ( 'no-cache' , true ) ; $ response -> headers -> addCacheControlDirective ( 'max-age' , 0 ) ; $ response -> headers -> addCacheControlDirective ( 'must-revalidate' , true ) ; $ response -> headers -> addCacheControlDirective ( 'no-store' , true ) ; $ response -> headers -> addCacheControlDirective ( 'expires' , '-1' ) ; return $ response ; }
Render the page of types administration.

@Route("/types", name="claroline_types_manager")
@Secure(roles="ROLE_HOME_MANAGER")

@return Response
Render the page of types administration .