Hi Koen,

$ro->gen(implode('+' ,array_reverse($req- 
 >getAttribute('matched_routes', 'org.agavi.routing'))) . '+rss')  
should do the trick.

A nice feature request, actually. Being able to do $ro->gen('+rss')  
would be nice ;)

And coincidentally, I thought about the exactly same thing (including  
the RSS example) this morning :p

David




Am 28.04.2008 um 12:06 schrieb Van Daele, Koen:

> Hello all,
>
> Just a quick question: I'd like to generate a route to the current  
> page
> but with a different output type. Normally I'd do $ro->gen(null) for  
> the
> current page, but of course $ro->gen(null+rss) is impossible. Is  
> there a
> way to do this or do I need to know the name of the route in order to
> set a different output type?
>
> Greetings,
> Koen
>
>
> Koen Van Daele
> IT-verantwoordelijke
> Vlaams Instituut voor het Onroerend Erfgoed
> Phoenix gebouw - Koning Albert II laan 19 bus 5
> 1210 Brussel
>
> Tel.: 02/553.16.82
> Website: http://www.vioe.be
>
>
>
> <Koen Van Daele  
> (koen 
> .vandaele 
> @rwo 
> .vlaanderen.be).vcf>_______________________________________________
> users mailing list
> [email protected]
> http://lists.agavi.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to