public function indexAction()
    {
        $pager = $this->get('sonata.classification.manager.collection')
            ->getRootCollectionsPager($this->getCurrentRequest()->get('page'));

        return $this->render('SonataProductBundle:Collection:index.html.twig', [
            'pager' => $pager,
        ]);
    }
public function indexAction()
    {
        $pager = $this->get('sonata.classification.manager.collection')
            ->getRootCollectionsPager($this->getCurrentRequest()->get('page'));

        return $this->render('SonataProductBundle:Collection:index.html.twig', [
            'pager' => $pager,
        ]);
    }
public function indexAction ( ) { $ pager = $ this -> get ( 'sonata.classification.manager.collection' ) -> getRootCollectionsPager ( $ this -> getCurrentRequest ( ) -> get ( 'page' ) ) ; return $ this -> render ( 'SonataProductBundle:Collection:index.html.twig' , [ 'pager' => $ pager , ] ) ; }
List the main collections.

@return Response
List the main collections .