src/Flowcode/ShopBundle/Controller/AdminMeasureUnitController.php
/**
     * Displays a form to create a new MeasureUnit entity.
     *
     * @Route("/new", name="admin_shop_measure_unit_new")
     * @Method("GET")
     * @Template()
     */
Displays a form to create a new MeasureUnit entity.
Displays a form to create a new MeasureUnit entity .
public function newAction()
    {
        $measureunit = new MeasureUnit();
        $form = $this->createForm(MeasureUnitType::class, $measureunit);
        return array(
            'measureunit' => $measureunit,
            'form' => $form->createView(),
        );
    }
public function newAction ( ) { $ measureunit = new MeasureUnit ( ) ; $ form = $ this -> createForm ( MeasureUnitType :: class , $ measureunit ) ; return array ( 'measureunit' => $ measureunit , 'form' => $ form -> createView ( ) , ) ; }
Displays a form to create a new MeasureUnit entity.
Displays a form to create a new MeasureUnit entity .