示例#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');
 }
示例#2
0
 protected function configureRoutes(RouteCollection $collection)
 {
     $collection->remove('delete');
 }