public function url($page)
    {
        $paginator = $this->getPaginator();

        //
        $pageName = $paginator->getPageName();

        $query = array_merge(
            $paginator->getQuery(), array($pageName => $page)
        );

        return $this->buildUrl(
            $paginator->getPath(), $query, $paginator->fragment()
        );
    }
public function url($page)
    {
        $paginator = $this->getPaginator();

        //
        $pageName = $paginator->getPageName();

        $query = array_merge(
            $paginator->getQuery(), array($pageName => $page)
        );

        return $this->buildUrl(
            $paginator->getPath(), $query, $paginator->fragment()
        );
    }
public function url ( $ page ) { $ paginator = $ this -> getPaginator ( ) ; // $ pageName = $ paginator -> getPageName ( ) ; $ query = array_merge ( $ paginator -> getQuery ( ) , array ( $ pageName => $ page ) ) ; return $ this -> buildUrl ( $ paginator -> getPath ( ) , $ query , $ paginator -> fragment ( ) ) ; }
Resolve the URL for a given page number.

@param  int  $page
@return string
Resolve the URL for a given page number .