Hi Olivier,
I can confirm what Bruno and Simon have already said.  You may have multiple
pagination controls per page.  Note that the $this referenced in the view
partial is not the Zend_View instance, but a separate object containing
values for previous, next, etc.  Thus you would not be able to access any
variables from the view instance.

As noted by Simon, the final parameter of the PaginationControl helper is
reserved for user parameters.  A variety of documentation updates are
forthcoming.

-Matt

On Fri, Sep 12, 2008 at 4:19 AM, Olivier Ricordeau <[EMAIL PROTECTED]>wrote:

> Hi list,
>
> First, I'm wondering if it's possible to have several paginators in the
> same page (I want to display them in the same page, but in different tabs).
> I'm asking this question because the example paginator control scripts use
> $this->previous (for instance), so I was thinking that several paginators
> per page could lead to conflicts. If the answer is "no", is there a known
> workaround?
>
> Second question: 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
>
> --
> - *Olivier RICORDEAU* -
>  [EMAIL PROTECTED]
>
>

Reply via email to