src/Slashworks/AppBundle/Controller/CustomerController.php
public function newAction()
        {

            $oCustomer = new Customer();
            $form      = $this->createCreateForm($oCustomer);

            return $this->render('SlashworksAppBundle:Customer:new.html.twig', array(
                'entity' => $oCustomer,
                'form'   => $form->createView(),
            ));
        }
public function newAction()
        {

            $oCustomer = new Customer();
            $form      = $this->createCreateForm($oCustomer);

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

@return \Symfony\Component\HttpFoundation\Response
Displays a form to create a new Customer entity .