Esempio n. 1
0
 protected function configureRoutes(RouteCollection $collection)
 {
     $collection->remove('create');
     $em = $this->get('doctrine.orm.entity_manager');
     $posts = $em->getRepository('SiteFrontEndBundle:Site')->findAll();
     return $this->return('SiteFrontEndBundle:news.html.twig');
 }
Esempio n. 2
0
 protected function configureRoutes(RouteCollection $collection)
 {
     $collection->remove('delete');
 }