Hi Simon, I agree with the last suggestion. However, with the first one, if you had default values set and then overrode them with specific values in the function call, there would be no way to get back to the default values unless you manually passed them in. Or am I interpreting what you said wrong?
Thanks, -Matt On Sun, Aug 31, 2008 at 1:18 PM, SiCo007 <[EMAIL PROTECTED]> wrote: > > Just been using this for the first time today, can I suggest an improvement > (subject to opinion obv!). > > When calling the view helper would it not be better to store the values > passed to it for future use thus allowing you to echo the control again > with > the same settings without setting them again. If the attributes were set > then it would over write those set and basically start again. > > I have extended the class to do this in my own framework and thought it > might be useful, I like to have the paging controls at the top and the > bottom. > > It would also be good if the view helper tried to detect the paginator > instance in the view itself. The docs suggest calling it $view->paginator > would it not make sense for the helper to use this by default unless > another > instance is supplied in the helper call? > > Therefore you get easy helper methods for reuse but retain the ability to > use multiple instances with different displays. > > Otherwise it works very well. > > ----- > Simon > > http://www.ajb007.co.uk/ > -- > View this message in context: > http://www.nabble.com/Zend_Paginator-tp19245710p19245710.html > Sent from the Zend Framework mailing list archive at Nabble.com. > >
