Bundle/SeoBundle/Controller/PageSeoController.php
public function settingsAction(Request $request, View $view)
    {
        $pageSeo = $view->getSeo() ?: new PageSeo();
        $form = $this->createSettingsForm($pageSeo, $view);

        $form->handleRequest($request);

        $response = $this->getNotPersistedSettingsResponse(
            $form,
            $view,
            $request->query->get('novalidate', false)
        );

        return new JsonResponse($response);
    }
public function settingsAction(Request $request, View $view)
    {
        $pageSeo = $view->getSeo() ?: new PageSeo();
        $form = $this->createSettingsForm($pageSeo, $view);

        $form->handleRequest($request);

        $response = $this->getNotPersistedSettingsResponse(
            $form,
            $view,
            $request->query->get('novalidate', false)
        );

        return new JsonResponse($response);
    }
public function settingsAction ( Request $ request , View $ view ) { $ pageSeo = $ view -> getSeo ( ) ? : new PageSeo ( ) ; $ form = $ this -> createSettingsForm ( $ pageSeo , $ view ) ; $ form -> handleRequest ( $ request ) ; $ response = $ this -> getNotPersistedSettingsResponse ( $ form , $ view , $ request -> query -> get ( 'novalidate' , false ) ) ; return new JsonResponse ( $ response ) ; }
Display a form to edit Seo settings.

@param Request $request
@param View    $view

@throws \Exception

@Route("/{id}/settings", name="victoire_seo_pageSeo_settings")
@Method("GET")

@return JsonResponse
Display a form to edit Seo settings .