Re: Base-Templates Dir Feature Added to Smarty 1.4.0

From: Date: Thu, 10 May 2001 10:07:40 +0000
Subject: Re: Base-Templates Dir Feature Added to Smarty 1.4.0
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-714@lists.php.net to get a copy of this message
Hi, Mirko Buffoni wrote: > Also, is there any way to set up a variable by default every time a smarty > class is declared, call it PHP_SELF, that contains the name of the file > currently requesting template interpretation? Or can I access $PHP_SELF > variable from template, without forcing SMARTY_PHP_ALLOW in the code? Yes you can. In the smarty class, there's an array called $global_assign. If you add "PHP_SELF" to it, it will be assigned to all templates. You can then use {$PHP_SELF} in your template.. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

« previous php.smarty.general (#714) next »