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

From: Date: Thu, 10 May 2001 14:22:10 +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-737@lists.php.net to get a copy of this message
if you mean why is {$SCRIPT_NAME} available with register_globals both on and off? i'd guess it's portability. also, until 1.4.0 b1 it worked only with register_globals on. At 16:02 10.5. 2001, Jim Harlindong wrote the following: -------------------------------------------------------------- >> >> 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 > > > >--- >You are currently subscribed to smarty as: cynic@mail.cz >To unsubscribe send a blank email to $subst('Email.Unsub') >Visit Smarty's homepage at >http://www.phpinsider.com/php/code/Smarty/ ------end of quote------ cynic@mail.cz ------------- And the eyes of them both were opened and they saw that their files were world readable and writable, so they chmoded 600 their files. - Book of Installation chapt 3 sec 7

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