main/core/Controller/HomeController.php
public function creatorAction($type, $id = null, $content = null, $father = null)
    {
        //cant use @Secure(roles="ROLE_ADMIN") annotation beacause this method is called in anonymous mode
        if ($this->canEdit()) {
            return $this->render(
                'ClarolineCoreBundle:home/types:'.$type.'.creator.twig',
                $this->manager->getCreator($type, $id, $content, $father),
                true
            );
        }

        return new Response(); //return void and not an exeption
    }
public function creatorAction($type, $id = null, $content = null, $father = null)
    {
        //cant use @Secure(roles="ROLE_ADMIN") annotation beacause this method is called in anonymous mode
        if ($this->canEdit()) {
            return $this->render(
                'ClarolineCoreBundle:home/types:'.$type.'.creator.twig',
                $this->manager->getCreator($type, $id, $content, $father),
                true
            );
        }

        return new Response(); //return void and not an exeption
    }
public function creatorAction ( $ type , $ id = null , $ content = null , $ father = null ) { //cant use @Secure(roles="ROLE_ADMIN") annotation beacause this method is called in anonymous mode if ( $ this -> canEdit ( ) ) { return $ this -> render ( 'ClarolineCoreBundle:home/types:' . $ type . '.creator.twig' , $ this -> manager -> getCreator ( $ type , $ id , $ content , $ father ) , true ) ; } return new Response ( ) ; //return void and not an exeption }
Render the page of the creator box.

@Route("/content/creator/{type}/{id}/{father}", name="claroline_content_creator", defaults={"father" = null})

@param string $type The type of the content to create

@return \Symfony\Component\HttpFoundation\Response
Render the page of the creator box .