Controller/Backend/LanguageController.php
public function newAction()
    {
        $breadcumbs = $this->container->get('bacon_breadcrumbs');

        $breadcumbs->addItem(array(
            'title' => 'Language',
            'route' => 'admin_language',
        ));

        $breadcumbs->addItem(array(
            'title' => 'New',
            'route' => '',
        ));

        $form = $this->createForm(new LanguageFormType(), new Language());

        return array(
            'form'   => $form->createView(),
        );
    }
public function newAction()
    {
        $breadcumbs = $this->container->get('bacon_breadcrumbs');

        $breadcumbs->addItem(array(
            'title' => 'Language',
            'route' => 'admin_language',
        ));

        $breadcumbs->addItem(array(
            'title' => 'New',
            'route' => '',
        ));

        $form = $this->createForm(new LanguageFormType(), new Language());

        return array(
            'form'   => $form->createView(),
        );
    }
public function newAction ( ) { $ breadcumbs = $ this -> container -> get ( 'bacon_breadcrumbs' ) ; $ breadcumbs -> addItem ( array ( 'title' => 'Language' , 'route' => 'admin_language' , ) ) ; $ breadcumbs -> addItem ( array ( 'title' => 'New' , 'route' => '' , ) ) ; $ form = $ this -> createForm ( new LanguageFormType ( ) , new Language ( ) ) ; return array ( 'form' => $ form -> createView ( ) , ) ; }
Displays a form to create a new Language entity.

@Route("/new", name="admin_language_new")
@Method("GET")
@Security("has_role('ROLE_ADMIN')")
@Template()
Displays a form to create a new Language entity .