and you can grab buttons here, for example

\
{$server_name}{$php_self} {else}
these are commands of the Smarty-
language, an intermediary between PHP code and the HTML page
very convenient when creating templates — it lets you completely separate design and programming..
here's how these variable values are set in the controller
$smarty->assign("php_self",$_SERVER['REQUEST_URI']);
$smarty->assign("server_name",$_SERVER['SERVER_NAME']);
$smarty->assign("page_meta",$page_meta);
$smarty->assign("page_title",$page_title);
$smarty->assign("page_meta_utf8",winToUtf8($page_meta));
$smarty->assign("page_title_utf8",winToUtf8($page_title))
if you don't have Smarty or don't want to use it, then simply
instead of {$php_self} write $_SERVER['REQUEST_URI']
instead of {$server_name} write $_SERVER['SERVER_NAME']
etc.
Comments