-- 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/

Reply via email to