src/Controller/FormController.php
public function localPathAction(Request $request)
    {
        $response = $this->getCacheTimeKeeper()->getResponse();
        // response was not modified for this request
        if ($response->isNotModified($request)) {
            return $response;
        }

        $form = $this->createForm(
            new ChoiceLocalPath(),
            ['path' => $request->get('path') ?: '']
        );

        return $this->render('AnimeDbAppBundle:Form:local_path.html.twig', [
            'form' => $form->createView(),
        ], $response);
    }
public function localPathAction(Request $request)
    {
        $response = $this->getCacheTimeKeeper()->getResponse();
        // response was not modified for this request
        if ($response->isNotModified($request)) {
            return $response;
        }

        $form = $this->createForm(
            new ChoiceLocalPath(),
            ['path' => $request->get('path') ?: '']
        );

        return $this->render('AnimeDbAppBundle:Form:local_path.html.twig', [
            'form' => $form->createView(),
        ], $response);
    }
public function localPathAction ( Request $ request ) { $ response = $ this -> getCacheTimeKeeper ( ) -> getResponse ( ) ; // response was not modified for this request if ( $ response -> isNotModified ( $ request ) ) { return $ response ; } $ form = $ this -> createForm ( new ChoiceLocalPath ( ) , [ 'path' => $ request -> get ( 'path' ) ? : '' ] ) ; return $ this -> render ( 'AnimeDbAppBundle:Form:local_path.html.twig' , [ 'form' => $ form -> createView ( ) , ] , $ response ) ; }
Form field local path.

@param Request $request

@return Response
Form field local path .