Controller/CenterController.php
public function newAction()
    {
        $center = new Center();
        $form   = $this->createCreateForm($center);

        return $this->render('ChillMainBundle:Center:new.html.twig', array(
            'entity' => $center,
            'form'   => $form->createView(),
        ));
    }
public function newAction()
    {
        $center = new Center();
        $form   = $this->createCreateForm($center);

        return $this->render('ChillMainBundle:Center:new.html.twig', array(
            'entity' => $center,
            'form'   => $form->createView(),
        ));
    }
public function newAction ( ) { $ center = new Center ( ) ; $ form = $ this -> createCreateForm ( $ center ) ; return $ this -> render ( 'ChillMainBundle:Center:new.html.twig' , array ( 'entity' => $ center , 'form' => $ form -> createView ( ) , ) ) ; }
Displays a form to create a new Center entity.
Displays a form to create a new Center entity .