Controller/MediaController.php
public function newAction()
    {
        $entity = new Media();
        $form = $this->createCreateForm($entity);

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

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