main/core/Controller/HomeController.php
public function contentToRegionAction($region, $content)
    {
        try {
            $this->manager->contentToRegion($region, $content);

            return new Response('true');
        } catch (\Exception $e) {
            return new Response('false'); //useful in ajax
        }
    }
public function contentToRegionAction($region, $content)
    {
        try {
            $this->manager->contentToRegion($region, $content);

            return new Response('true');
        } catch (\Exception $e) {
            return new Response('false'); //useful in ajax
        }
    }
public function contentToRegionAction ( $ region , $ content ) { try { $ this -> manager -> contentToRegion ( $ region , $ content ) ; return new Response ( 'true' ) ; } catch ( \ Exception $ e ) { return new Response ( 'false' ) ; //useful in ajax } }
Put a content into a region in front page as left, right, footer. This is useful for menus.

@Route("/region/{region}/{content}", requirements={"content" = "\d+"}, name="claroline_content_to_region")

@ParamConverter("region", class = "ClarolineCoreBundle:Home\Region", options = {"mapping": {"region": "name"}})
@ParamConverter("content", class = "ClarolineCoreBundle:Content", options = {"id" = "content"})

@Secure(roles="ROLE_HOME_MANAGER")

@return \Symfony\Component\HttpFoundation\Response
Put a content into a region in front page as left right footer . This is useful for menus .