public function indexAction(Request $request)
    {
        $query = $this->get('ydle.logger')->createViewLogQuery();

        $paginator  = $this->get('knp_paginator');
        $pagination = $paginator->paginate(
            $query,
            $this->get('request')->query->get('page', 1)/*page number*/,
            25/*limit per page*/
        );

        $logs = new Logs();
        $form = $this->createForm("logsfilter_form", $logs);

        return $this->render('YdleHubBundle:Logs:index.html.twig', array(
            'pagination' => $pagination,
            'form' => $form->createView()
        ));
    }
public function indexAction(Request $request)
    {
        $query = $this->get('ydle.logger')->createViewLogQuery();

        $paginator  = $this->get('knp_paginator');
        $pagination = $paginator->paginate(
            $query,
            $this->get('request')->query->get('page', 1)/*page number*/,
            25/*limit per page*/
        );

        $logs = new Logs();
        $form = $this->createForm("logsfilter_form", $logs);

        return $this->render('YdleHubBundle:Logs:index.html.twig', array(
            'pagination' => $pagination,
            'form' => $form->createView()
        ));
    }
public function indexAction ( Request $ request ) { $ query = $ this -> get ( 'ydle.logger' ) -> createViewLogQuery ( ) ; $ paginator = $ this -> get ( 'knp_paginator' ) ; $ pagination = $ paginator -> paginate ( $ query , $ this -> get ( 'request' ) -> query -> get ( 'page' , 1 ) /*page number*/ , 25 /*limit per page*/ ) ; $ logs = new Logs ( ) ; $ form = $ this -> createForm ( "logsfilter_form" , $ logs ) ; return $ this -> render ( 'YdleHubBundle:Logs:index.html.twig' , array ( 'pagination' => $ pagination , 'form' => $ form -> createView ( ) ) ) ; }
Homepage for logs

@param  \Symfony\Component\HttpFoundation\Request $request
@return type
Homepage for logs