Hi, the paginators if set up as per the manual use partials, I may be wrong as I've never used partials except for the paginator, the idea is that the paginator lives within it's own space. Therefore it doesn't in heirt your view variables just the variables you tell it to.
If you look at the paginator code it allows you to pass parameters to the partial in the calling display method (I believe it's the last parameter). These will then be accessible in your partial as their own variable. Like I say though I may be wrong as I've never gone any more advanced than just passing a string to the paginator. Olivier Ricordeau wrote: > > > I have a strange behaviour with the view variables. In >> my controller's init() method I declare a few view variables (ex: >> $this->view->trans = new Translator()) and I can't manage to access them >> in the paginator control script. I've tried to make a var_dump($this) >> and $this has the type MyView (which is fine, MyView is a custom class >> that inherits from Zend_View). But I get an error if I write >> $this->trans->some_method(), telling me "Call to a member function >> some_method() on a non-object" >> NB: Yes, I do a $paginator->setView($this->view) in my controller. >> >> Cheers, >> Olivier >> > ----- Simon http://www.ajb007.co.uk/ -- View this message in context: http://www.nabble.com/-Paginator--several-paginators-per-page-%2B-other-issues-tp19453883p19457129.html Sent from the Zend Framework mailing list archive at Nabble.com.
