Re: Base-Templates Dir Feature Added to Smarty1.4.0

From: Date: Thu, 10 May 2001 12:42:42 +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-721@lists.php.net to get a copy of this message
> -----Original Message----- > From: Cynic [mailto:cynic@mail.cz] > Sent: Thursday, 10 May 2001 10:07 PM > To: Mirko Buffoni; Ivo Jansch > Cc: smarty@lists.ispi.net > Subject: [smarty] Re: Base-Templates Dir Feature Added to Smarty1.4.0 > > > With register_globals on, you can just use > var $global_assign = array( 'SCRIPT_NAME' , 'PHP_SELF' ) ; > > but with register_globals off, these are unset, so you > need > var $global_assign = array( 'HTTP_SERVER_VARS' => > array( 'SCRIPT_NAME' , > 'PHP_SELF' ) > ); And these will be accessed through {$HTTP_SERVER_VARS.SCRIPT_NAME} and {$HTTP_SERVER_VARS.PHP_SELF} ? Another question, what is the difference between SCRIPT_NAME and PHP_SELF ? Thanks

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