Hi.
Just wondering what code I would use to echo the filename of a smarty page.
{php}
echo $PHP_SELF;
{/php}
The above does not work
Thanks!
Hi.
Just wondering what code I would use to echo the filename of a smarty page.
{php}
echo $PHP_SELF;
{/php}
The above does not work
Thanks!
What is a smarty page?
If global variables turned off, you get the value by using:
$_SERVER['PHP_SELF']
What errors are you getting?
Smarty is a Template Engine, basically it seperates your output from your application logic.
{$_SERVER["PHP_SELF"]}, maybe?
{$SERVER["PHP_SELF"]} doesnt seem to work. The server I use runs PHP 4.06, so I had to use $HTTP_SERVER_VARS instead of $SERVER.
I get no errors, it just doesn't echo anything in the output.
$smarty.server.PHP_SELF