Re: [SMARTY] two problems translated

From: Date: Fri, 19 Apr 2002 14:15:47 +0000
Subject: Re: [SMARTY] two problems translated
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3813@lists.php.net to get a copy of this message
On Fri, 19 Apr 2002, Gabor Hojtsy wrote: > Hi! > > This is a translated message from Hungarian to English. > I am the translator, because the guy, who posted this > is not too good in English ;) > > He has two problems: > > -+-+-+- > First Smarty works for him with w2k, apache, php4.1, > but not with w2k, IIS, php4.1 (note that only the > server is replaced). The problem is that IIS does > not like mixed \ and / chars in path values. The > error is in the _create_dir_structure function. > > IIS Does not like C:\Inetpub\.../_smarty/templates_c/117/1172603085 > But it's fine with C:\Inetpub\...\_smarty\templates_c\117\1172603085 > > So the guy would like to ask for a $_separator property for > Smarty to specify which slash to use for path values... This has been fixed for the next release. > -+-+-+- > The second is a feature request for a new API function > to query all the variable names set or not set from a > template. > > Something like: > > $smarty->getVars(SMARTY_VARS_DEFINED, "test.tpl"); > $smarty->getVars(SMARTY_VARS_UNDEFINED, "test.tpl"); > $smarty->getVars(SMARTY_VARS_DEFINED + SMARTY_VARS_UNDEFINED, "test.tpl"); > > This way you can debug your template in your program, or > do something according to needed vars. This can also be > used to call up modules in my code, as the I use the vars > as placeholders for module output in some templates... > Now I use my own Smarty extension class for this stuff... What does he mean by 'undefined vars'? -Andrei "Perl - the only language that looks the same before and after RSA encryption." -Keith Bostic

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