public function indexAction(Request $request) { $order_by = ''; $em = $this->get('doctrine.orm.entity_manager'); $repository = $em->getRepository('Acme\\InfoBundle\\Entity\\Services'); $languagesCount = $repository->getIdCount(); $paginator = new Services($languagesCount); $strPaginator = $paginator->RenderPaginator(); $services = $this->get('doctrine')->getRepository('AcmeInfoBundle:Services')->findAll(); return $this->render('AcmeInfoBundle:Serviceslist:index.html.twig', array('services' => $services, 'paginator' => $strPaginator)); }
/** * {@inheritDoc} */ public function RenderPaginator() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'RenderPaginator', array()); return parent::RenderPaginator(); }