[Catalyst] uri_for problem
Richard Thomas
ret at mac.com
Wed Mar 5 20:32:17 GMT 2008
> Moritz Onken wrote:
>>> [%- ourl = Catalyst.uri_for('/search') _ "?stype=seqid&query=" -%] ?
>> Am 05.03.2008 um 10:50 schrieb Emmanuel Quevillon:
> Thanks! That did the work.
Well, it might work, but it does seem a messy way to do it.
[%- ourl = Catalyst.uri_for('/search', { stype => seqid, query
=> '' }) -%]
-or (and this is a lot easier to work with in many circumstances,
especially if you're conditionally manipulating the parameters)
[%- params = { stype => seqid, query => ''} -%]
...
[%- ourl = Catalyst.uri_for('/search', params) -%]
Hope that helps,
RET
More information about the Catalyst
mailing list