Re: Base-Templates Dir Feature Added to Smarty1.4.0
| From: | Jim Harlindong | Date: | Thu, 10 May 2001 14:02:01 +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-734@lists.php.net to get a copy of this message | ||
>
> 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' )
> );
>
Why are these two methods of variables (one is straight vars the other
is associative array or array) accessed the same way in smarty? Can
someone explain to me?
Thanks