Code Comments
Programming Forum and web based access to our favorite programming groups.You could assign it how you like:
$smarty->assign('url', 'http://' . $_SERVER['SERVER_NAME'] .
$_SERVER['REQUEST_URI']);
or access server vars directly:
{$smarty.server.REQUEST_URI}
generic@SAFe-mail.net wrote:
>Hello--I would like to be able to get the current URL from within a Smarty template
. I have looked at the reserved variables, but the {$smarty.get.page} and {$smarty.p
ost.page} aren't what I need since a form has not been posted, only a php page execu
ted
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.