Reserved variable
| From: | Roberto Berto | Date: | Thu, 01 Nov 2001 12:14:49 +0000 |
| Subject: | Reserved variable | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1779@lists.php.net to get a copy of this message | ||
Hi,
Maybe someone want to change the name of reserved variable to something
else.
I'm talking about:
{$smarty.env.PATH} be {$something.env.PATH}
So, I altered:
At
From:
$this->assign('smarty', $smarty);
To:
$this->assign($this->reserved_variable, $smarty);
And add to vars of Smarty.class:
var $reserved_variable = "cms";
Atenciosamente,
Roberto Berto'
----------------
roberto@berto.net
eConsultor
0(XX)51 32270599 -> Horario preferencial: 13h - 20h
0(XX)51 91169628 -> Em outros horarios