two problems translated

From: Date: Fri, 19 Apr 2002 11:02:49 +0000
Subject: two problems translated
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3802@lists.php.net to get a copy of this message
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... -+-+-+- 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... Goba

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