src/Slashworks/AppBundle/Controller/CustomerController.php
private function createCreateForm(Customer $oCustomer)
        {

            $form = $this->createForm(new CustomerType(array("language" => $this->get('request')->getLocale())), $oCustomer, array(
                'action' => $this->generateUrl('backend_system_customer_create'),
                'method' => 'POST',
            ));

            $form->add('submit', 'submit', array('label' => 'Create'));

            return $form;
        }
private function createCreateForm(Customer $oCustomer)
        {

            $form = $this->createForm(new CustomerType(array("language" => $this->get('request')->getLocale())), $oCustomer, array(
                'action' => $this->generateUrl('backend_system_customer_create'),
                'method' => 'POST',
            ));

            $form->add('submit', 'submit', array('label' => 'Create'));

            return $form;
        }
private function createCreateForm ( Customer $ oCustomer ) { $ form = $ this -> createForm ( new CustomerType ( array ( "language" => $ this -> get ( 'request' ) -> getLocale ( ) ) ) , $ oCustomer , array ( 'action' => $ this -> generateUrl ( 'backend_system_customer_create' ) , 'method' => 'POST' , ) ) ; $ form -> add ( 'submit' , 'submit' , array ( 'label' => 'Create' ) ) ; return $ form ; }
Creates a form to create a Customer entity.

@param Customer $oCustomer The entity

@return \Symfony\Component\Form\Form The form
Creates a form to create a Customer entity .