main/core/Controller/HomeController.php
public function moveContentAction($content, $type, $page)
    {
        try {
            $this->manager->moveContent($content, $type, $page);

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

            return new Response('true');
        } catch (\Exception $e) {
            return new Response('false'); //useful in ajax
        }
    }
public function moveContentAction ( $ content , $ type , $ page ) { try { $ this -> manager -> moveContent ( $ content , $ type , $ page ) ; return new Response ( 'true' ) ; } catch ( \ Exception $ e ) { return new Response ( 'false' ) ; //useful in ajax } }
Render the "move a content" form.

@Route("/move/content/{content}/{type}/{page}", name="claroline_move_content", options = {"expose" = true})

@Secure(roles="ROLE_HOME_MANAGER")

@Template("ClarolineCoreBundle:home:move.html.twig")

@ParamConverter("content", class = "ClarolineCoreBundle:Content", options = {"id" = "content"})
@ParamConverter("type", class = "ClarolineCoreBundle:home\Type", options = {"mapping" : {"type": "name"}})
@ParamConverter("page", class = "ClarolineCoreBundle:home\Type", options = {"mapping" : {"page": "name"}})

@return \Symfony\Component\HttpFoundation\Response
Render the move a content form .