Bundle/PageBundle/Controller/PageController.php
public function newAction(Request $request, $isHomepage = false)
    {
        return new JsonResponse(parent::newAction($request, $isHomepage));
    }
public function newAction(Request $request, $isHomepage = false)
    {
        return new JsonResponse(parent::newAction($request, $isHomepage));
    }
public function newAction ( Request $ request , $ isHomepage = false ) { return new JsonResponse ( parent :: newAction ( $ request , $ isHomepage ) ) ; }
Display a form to create a new Page.

@param Request $request
@param bool    $isHomepage Is the page a homepage

@Route("/new", name="victoire_core_page_new", defaults={"isHomepage" : false})
@Route("/homepage/new", name="victoire_core_homepage_new", defaults={"isHomepage" : true})
@Method("GET")

@return JsonResponse
Display a form to create a new Page .