Re: Pager and Cookies

From: Date: Thu, 27 Jan 2005 17:16:56 +0000
Subject: Re: Pager and Cookies
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17215@lists.php.net to get a copy of this message
Andrew Nagy wrote:
Andrew Nagy wrote:
Lorenzo Alberton wrote:
if you have the latest release, you can set the current page number with the 'currentPage' option:
Thanks, but it still doesn't seem to work because I have a different page variable, so I would still like to use the 'urlVar' option as well. Any ideas? Andrew
Maybe something like this: Line 1128: if (isset($_REQUEST[$this->_urlVar]) && !isset($options['currentPage'])) {
    $this->_currentPage = (int)$_REQUEST[$this->_urlVar];
}
Better yet: if (isset($_REQUEST[$this->_urlVar]) &&
    $options['currentPage'] !== null)) {


« previous php.pear.general (#17215) next »