main/core/Controller/HomeController.php
public function renameContentAction(Type $type, $name)
    {
        try {
            $this->manager->renameType($type, $name);

            return new Response('true');
        } catch (\Exception $e) {
            return new Response('false'); //useful in ajax
        }
    }
public function renameContentAction(Type $type, $name)
    {
        try {
            $this->manager->renameType($type, $name);

            return new Response('true');
        } catch (\Exception $e) {
            return new Response('false'); //useful in ajax
        }
    }
public function renameContentAction ( Type $ type , $ name ) { try { $ this -> manager -> renameType ( $ type , $ name ) ; return new Response ( 'true' ) ; } catch ( \ Exception $ e ) { return new Response ( 'false' ) ; //useful in ajax } }
Rename a content form.

@Route("/rename/type/{type}/{name}", name="claro_content_rename_type", options = {"expose" = true})
@Secure(roles="ROLE_HOME_MANAGER")
@ParamConverter("type", class = "ClarolineCoreBundle:Home\Type", options = {"mapping" : {"type": "name"}})

@param Type   $type
@param string $name

@return Response
Rename a content form .