Re: A more sensible way to do paging in Structures_DataGrid?

From: Date: Fri, 26 Nov 2004 06:36:59 +0000
Subject: Re: A more sensible way to do paging in Structures_DataGrid?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15816@lists.php.net to get a copy of this message
On Thu, 25 Nov 2004 19:47:35 -0800, Ken Restivo <ken@restivo.org> wrote: > OK I was able to get the stable version of Structures_DataGrid (sorry, using CVS version is > impractical with my ISP). > > I'm basically using this approach to work with DBDO: > > $dg = new Structures_DataGrid(10, $_REQUEST['page']); > while ($user->fetch()){ > $ar = $user->toArray(); > $rec = new Structures_DataGrid_Record($ar); > $dg->addRecord($rec); > } > $dg->render(); > print $rend->getPaging(); > > Problem is the paging. On a huge dataset, I'm fetching thousands of records, and the > Datagrid_Renderer_HTML_Table seems to want all of them before displaying 10 of them. There has to be > a better way. > Yep, use the CVS version. Sorry, but that's your best alternative. It shouldn't be too hard to just grab it from the web CVS frontend and stick it in your own dir. You can use ini_set('include_path', '/blah') or put it in the correct sub-dir of the dir your script including it is in. Or....perhaps we'll have a new release soon? -- Justin Patrin

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