Esempio n. 1
0
 /**
  * @Route("/navigation", name="admin_navigation")
  * @Method({"GET"})
  * 
  * @Template
  */
 public function navigationAction()
 {
     $navigationTableView = new NavigationTableView();
     $navigation = $this->getDoctrine()->getRepository('CorvusAdminBundle:Navigation')->FindAll();
     foreach ($navigation as $navItem) {
         $navigationTableView->getNavItems()->add($navItem);
     }
     $form = $this->createForm(new NavigationTableViewType(), $navigationTableView);
     return array('form' => $form->createView());
 }
Esempio n. 2
0
 public function __construct()
 {
     // Give the TableViewController parent the data it needs to construct the table view and methods
     parent::__construct(new Navigation(), 'navigation', NavigationTableView::getDataName(), NavigationTableView::getTypeName());
 }