Re: SIGMA and preserve_data

From: Date: Sat, 12 Mar 2005 18:34:48 +0000
Subject: Re: SIGMA and preserve_data
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17999@lists.php.net to get a copy of this message
> The following minimal code > > <?php > require_once 'HTML/Template/Sigma.php'; > $tpl =& new HTML_Template_Sigma(); > $tpl->setTemplate('This is the key: {regkey}'); > $tpl->setOption('preserve_data', true); > $tpl->setVariable('regkey', '\\\\HKLM\\...\\{092714hlnsdsaw29724}'); > $tpl->show(); > ?> > > works as expected, displaying > > This is the key: \\HKLM\...\{092714hlnsdsaw29724} > > Your example is not self-contained, therefore I suspect that there are some > errors in the parts of the code you decided not to show. > You can view the complete code here: http://cvs.sourceforge.net/viewcvs.py/unattended-gui/unattended-gui/modules/software/index.php?view=markup and the template: http://cvs.sourceforge.net/viewcvs.py/unattended-gui/unattended-gui/modules/software/templates/new_software.html?view=markup the var which will be replaced is {checkpath} this can be a registry key. the function: software_index_new_software() This little code you wrote works also for me, but not in my... Dont know what I am doing wrong...?····? greetings

« previous php.pear.general (#17999) next »