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.

(The reason why I want this, is to have it as a hidden value in a  
form, so the POST action's view can redirect back to the original page  
if necessary. I could do this with the referrer value, but I thought  
it was a bad idea to do that as some browsers/security setups don't  
sent it. This form is shown as a slot, and so I don't think I can use  
the standard routing mechanism to generate the URL as there isn't a  
fixed 'name' to use.)

Michal.

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

Reply via email to