src/Flowcode/MediaBundle/Controller/AdminMediaController.php
public function newAction($type) {
        $entity = new Media();
        $entity->setMediaType($type);
        $form = $this->createCreateForm($entity);

        return array(
            'entity' => $entity,
            'form' => $form->createView(),
        );
    }
public function newAction($type) {
        $entity = new Media();
        $entity->setMediaType($type);
        $form = $this->createCreateForm($entity);

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

@Route("/new/{type}", name="admin_media_new")
@Method("GET")
@Template()
Displays a form to create a new Media entity .