main/core/Controller/HomeController.php
public function renderRegions($regions)
    {
        $tmp = [];

        foreach ($regions as $name => $region) {
            $tmp[$name] = '';

            foreach ($region as $variables) {
                $tmp[$name] .= $this->render(
                    'ClarolineCoreBundle:home/types:'.$variables['type'].'.html.twig', $variables, true
                )->getContent();
            }
        }

        return $tmp;
    }
public function renderRegions($regions)
    {
        $tmp = [];

        foreach ($regions as $name => $region) {
            $tmp[$name] = '';

            foreach ($region as $variables) {
                $tmp[$name] .= $this->render(
                    'ClarolineCoreBundle:home/types:'.$variables['type'].'.html.twig', $variables, true
                )->getContent();
            }
        }

        return $tmp;
    }
public function renderRegions ( $ regions ) { $ tmp = [ ] ; foreach ( $ regions as $ name => $ region ) { $ tmp [ $ name ] = '' ; foreach ( $ region as $ variables ) { $ tmp [ $ name ] .= $ this -> render ( 'ClarolineCoreBundle:home/types:' . $ variables [ 'type' ] . '.html.twig' , $ variables , true ) -> getContent ( ) ; } } return $ tmp ; }
Render the HTML of the regions.

@param array $regions

@return string
Render the HTML of the regions .