Michal Charemza wrote:
> On 21 Feb 2009, at 14:59, Veikko Mäkinen wrote:
> 
>> Michal Charemza wrote:
>>> Hi,
>>>
>>> How can I generate the current URL in a template? I imagine I could  
>>> do
>>> it with $_SERVER['HTTP_HOST'] and $_SERVER['REQUEST_URI'], but I
>>> imagine I shouldn't access these variables directly when using Agavi.
>> $ro->gen(null);
> 

Actually I should have read better what you were after. If you want the
full url with host and friends you need a bit more:

$ro->gen(null, array(), array('relative'=>false);

There :)


-veikko

-- 
Veikko Mäkinen
[email protected]
044 5910 413
http://blog.veikko.fi


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

Reply via email to