HTML_Template_IT::get()

From: Date: Tue, 03 Feb 2004 14:07:41 +0000
Subject: HTML_Template_IT::get()
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10492@lists.php.net to get a copy of this message
I'm trying to use this method of the clase HTML_Template_IT and it keeps giving me an empty string, even though a var_dump() on the class object shows the block OK with all the variables replaced and parsed. The code looks like this: $js=new HTML_Template_IT("./javascript/"); $js->loadTemplatefile("verifform.js",true,true); $js->setCurrentBlock("JS"); $js->setVariable("FORM","siprebilogin"); $js->setVariable("USUARIO","admin"); $js->setVariable("PASSWORD","passwd"); $js->parseCurrentBlock(); var_dump($js->get("JS")); I did a var_dump to actually see the empty string: string(0) "" Any ideas on what I'm doing wrong? -- 11:04:01 up 69 days, 17:20, 3 users, load average: 0.37, 0.38, 0.30 ----------------------------------------------------------------- Martín Marqués | select 'mmarques' || '@' || 'unl.edu.ar' Centro de Telematica | DBA, Programador, Administrador Universidad Nacional del Litoral -----------------------------------------------------------------

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