main/core/Controller/HomeController.php
public function renderContent($layout)
    {
        $tmp = ' '; // void in case of not yet content

        if (isset($layout['content']) && isset($layout['type']) && is_array($layout['content'])) {
            foreach ($layout['content'] as $content) {
                $tmp .= $this->render(
                    'ClarolineCoreBundle:home/types:'.$content['type'].'.html.twig', $content, true
                )->getContent();
            }
        }

        $layout['content'] = $tmp;

        return $layout;
    }
public function renderContent($layout)
    {
        $tmp = ' '; // void in case of not yet content

        if (isset($layout['content']) && isset($layout['type']) && is_array($layout['content'])) {
            foreach ($layout['content'] as $content) {
                $tmp .= $this->render(
                    'ClarolineCoreBundle:home/types:'.$content['type'].'.html.twig', $content, true
                )->getContent();
            }
        }

        $layout['content'] = $tmp;

        return $layout;
    }
public function renderContent ( $ layout ) { $ tmp = ' ' ; // void in case of not yet content if ( isset ( $ layout [ 'content' ] ) && isset ( $ layout [ 'type' ] ) && is_array ( $ layout [ 'content' ] ) ) { foreach ( $ layout [ 'content' ] as $ content ) { $ tmp .= $ this -> render ( 'ClarolineCoreBundle:home/types:' . $ content [ 'type' ] . '.html.twig' , $ content , true ) -> getContent ( ) ; } } $ layout [ 'content' ] = $ tmp ; return $ layout ; }
Render the HTML of the content.

@param string $layout

@return array
Render the HTML of the content .