Matthew Weier O'Phinney-3 wrote:
>
> -- spaun <[EMAIL PROTECTED]> wrote
> (on Wednesday, 07 November 2007, 10:57 PM -0800):
>> One more idea - wouldn't it be nice to have an option to inject a link
>> assembler to route?
>>
>> For example I have an url with optional parameters and Regex route.
>> Currently the only way to assemble and url is to provide a reverse
>> pattern.
>> What if I'd like to omit empty parameters from url?
>>
>> Feeding the route with optional url assembler could help. Changes to
>> current
>> classes are minimal. Result is 100% backward compatible. What you think?
>
> All routes have an 'assemble' method already. Regex routes are a little
> tricky in that regards, which is why the reverse pattern is necessary,
> but in the others, you simply pass in the key/value pairs you desire in
> the URL, and the assemble method then creates the URL. This
> functionality is used by the Url view and action helpers.
>
> --
> Matthew Weier O'Phinney
> PHP Developer | [EMAIL PROTECTED]
> Zend - The PHP Company | http://www.zend.com/
>
>
Actually what I propose is the _option_ to_replace_ default assemble
functionality. Especially this could make sense for regex router.
--
View this message in context:
http://www.nabble.com/Route-enhancement-tf4769342s16154.html#a13646101
Sent from the Zend Framework mailing list archive at Nabble.com.