What sort of solution would you like to see? -Matt On Thu, Sep 18, 2008 at 9:20 AM, Nick Thornley <[EMAIL PROTECTED]> wrote:
> Thanks for that, it's an interesting idea, though I'm not sure personally, > it feels a little odd deciding those sort of display settings within the > model. > > Frustrating because the info is there, it's just in a nest of protected > class variables. > > For now I've just decided to put everything inside an array to keep it > together for my view helper. Not very pretty, but it gets the job done, for > the time being. > > Action: > $select = $this->_model->select()->order($this->_row_order); > $paginator = Zend_Paginator::factory($select); > $paginator->setItemCountPerPage(10); > $paginator->setCurrentPageNumber($curpage); > $this->view->model = array( > 'info' => > $this->_model->info(), > 'paginator' => $paginator > ); > > Cheers > N > > > On 18 Sep 2008, at 16:15, Jason Eisenmenger wrote: > > Nick, >> >> I was just discussing the paginator adapter with Jurrien. I don't have a >> direct answer but I have this leftover paste I can send your way to show you >> what kind of usage I wrapped around it. I may propose it later. >> >> http://pastie.org/274967 >> >> >> Jason >> >> On Thu, Sep 18, 2008 at 11:06 AM, Nick Thornley <[EMAIL PROTECTED]> >> wrote: >> Hi everybody. >> >> I currently have a view helper that constructs a tabulated output of the >> data contained in Zend_Db_Table_Rowset object, using the tables meta data to >> determine primary keys etc., for various uses. >> >> I would love to make use of Zend_Paginator, but cannot see any obvious way >> to get from a Zend_Paginator object back to the database table info. >> >> Does anyone know of an obvious way? >> >> Thanks >> Nick >> >> >
