public function getPaginationData(ServiceManager $sm, $paginator, $data, $routeName, $routeParams, $queryParams) 
	{
		$mainService = $sm->get('neobazaar.service.main');
		return array(
			'data' => $data,
			'paginationData' => Json::decode($mainService->getView()->paginationControl(
				$paginator,
				'Sliding',
				array('pagination/paginatorjson', 'Document'),
				array(
					'route' => $routeName,
					'params' => $routeParams, 
					'query' => $queryParams
				)
			))
		);
	}
public function getPaginationData(ServiceManager $sm, $paginator, $data, $routeName, $routeParams, $queryParams) 
	{
		$mainService = $sm->get('neobazaar.service.main');
		return array(
			'data' => $data,
			'paginationData' => Json::decode($mainService->getView()->paginationControl(
				$paginator,
				'Sliding',
				array('pagination/paginatorjson', 'Document'),
				array(
					'route' => $routeName,
					'params' => $routeParams, 
					'query' => $queryParams
				)
			))
		);
	}
public function getPaginationData ( ServiceManager $ sm , $ paginator , $ data , $ routeName , $ routeParams , $ queryParams ) { $ mainService = $ sm -> get ( 'neobazaar.service.main' ) ; return array ( 'data' => $ data , 'paginationData' => Json :: decode ( $ mainService -> getView ( ) -> paginationControl ( $ paginator , 'Sliding' , array ( 'pagination/paginatorjson' , 'Document' ) , array ( 'route' => $ routeName , 'params' => $ routeParams , 'query' => $ queryParams ) ) ) ) ; }
Get a pagination JSON data.

@todo Find how to better manage this
Get a pagination JSON data .