PHPlib -> SMARTY

From: Date: Thu, 15 Aug 2002 09:58:07 +0000
Subject: PHPlib -> SMARTY
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5723@lists.php.net to get a copy of this message
I have the task of converting an App running PHPlib templates to SMARTY and I have a few questions. $t = new Template($cfg_temproot, "remove"); (PHPlib) would be this in SMARTY? $smarty = new Smarty; $t->set_var("rc", $rc);(PHPlib) would be this in SMARTY? $smarty->assign("rc", $rc); I think I am going along the right lines above but I am stuck for the next bit. $t->set_file("start","start_free.htm"); $t->set_block("start", "bull_block", "bulls"); $t->set_block("bull_block", "new_iss_block", "newiss"); $t->set_block("bull_block", "sent_iss_block", "sentiss"); What woudl that be in SMARTY? Same for this? $t->parse("sentiss","sent_iss_block",true); And this? $t->parse("out", "start"); Any help would be great! Cheers John Wards

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