Pager_Sliding - better way to do this.
| From: | Alan Knowles | Date: | Thu, 13 Feb 2003 10:38:35 +0000 |
| Subject: | Pager_Sliding - better way to do this. | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-13216@lists.php.net to get a copy of this message | ||
I just got Pager_Sliding to work - very nice - the setting of $pager->links fits in really well with Flexy's way of doing things..
The only problem I ran into was that I couldnt work out how to stop the options messing around with my url - basically i want to specify exactly what url it should be adding as a prefix, rather than let it guess..
$this->pager = new Pager_Sliding( array(
'totalItems' => $this->N,
'perPage' => $this->perPage,
'append' => true));
$this->pager->_url = $_SERVER["PHP_SELF"]."?pageID=";
$this->pager->getLinks($this->session->page[$this->dbClass]);
this is the rather nasty kludge I ended up with - setting the private _url , can you think of any better ideas.
Regards
Alan
--
Can you help out?
Need Consulting Services or Know of a Job?
http://www.akbkhome.com