Good catch, but if you reset the parameters, you'll lose the ones that
weren't explicitly passed in. Maybe the answer is to extend the router so
you can customize its assemble method?

--
*Hector Virgen*
Sr. Web Developer
Walt Disney Parks and Resorts Online
http://www.virgentech.com



On Wed, Oct 20, 2010 at 1:16 PM, Fozzyuw <jmbertu...@gmail.com> wrote:

>
> Yes you are right.
>
> I got it to work but there was one "gotcha".  I needed to set the "reset"
> parameter to true, to let the parameters to sort properly.
>
> This is the view helper I created (basically a copy/paste of the actual
> view
> helper URL class, you can, of course, just extend as Hector did)
> http://pastie.org/1236307
>
> Notice, that I set $reset = true, if $sort=true.  This is just an extra
> check to make sure it works, in case one forgets.
>
> Then, basically I create a link HTML in the view script as such:
> http://pastie.org/1236403
>
> And if anyone's not familiar with custom view scripts, you have to register
> them in your bootstrap file like this:
> http://pastie.org/1236410
>
> That seemed to do the trick.
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Generating-URL-s-View-Helper-Action-Helper-tp3002936p3004521.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>

Reply via email to