Posted by Monte Ohrt on 09/29/58 11:04
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.post.page} aren't what I need since a form has not been posted, only a php page executed.
>
>Any help will be greatly appreciated.
>
>
>
Navigation:
[Reply to this message]
|