Re: Base-Templates Dir Feature Added to Smarty1.4.0
| From: | Ivo Jansch | Date: | Thu, 10 May 2001 11:21:36 +0000 |
| Subject: | Re: Base-Templates Dir Feature Added to Smarty1.4.0 | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-716@lists.php.net to get a copy of this message | ||
Hi,
Mirko Buffoni wrote:
> Sorry, I don't understand. At the moment it contains:
> array( 'HTTP_SERVER_VARS' => array( 'SCRIPT_NAME' ) );
> Should I do:
> array( 'HTTP_SERVER_VARS' => array( 'SCRIPT_NAME' ),
> 'PHP_SELF' => $PHP_SELF );
> It's not clear how the global assign works...
Yeah, I noticed, it's not clear from the example.
According to the docs
(http://www.phpinsider.com/php/code/Smarty/docs/c87.htm#SETTING.GLOBAL.ASSIGN),
it should be:
array( 'HTTP_SERVER_VARS' => array( 'SCRIPT_NAME' ),
'PHP_SELF' );
Greetings,
Ivo
--
Ivo Jansch <ivo@ibuildings.nl>
ibuildings.nl BV - information technology
http://www.ibuildings.nl