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