コード例 #1
0
ファイル: DefaultController.php プロジェクト: nikapol/project
 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
ファイル: ProcessAdmin.php プロジェクト: kurmin/ts_project
 protected function configureRoutes(RouteCollection $collection)
 {
     $collection->remove('delete');
 }