RE: [Phplib-users] 2 Problems (Reset Button + Template Problem)
Brought to you by:
nhruby,
richardarcher
From: Rob H. <rob...@ws...> - 2002-10-09 13:23:21
|
So you have a variable in another template called {contenttext} that you are parsing later? If you want to print this now, use pparse instead (or $t->p('contenttext')). Rob Hutton Web Safe www.wsafe.com > -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf Of Benjamin > Hoft > Sent: Wednesday, October 09, 2002 9:02 AM > To: 'la...@if...'; 'php...@li...' > Subject: RE: [Phplib-users] 2 Problems (Reset Button + Template Problem) > > > > > printallNEWS($t); > > > > function printallNEWS($t) > > { > $t->set_file(array( > "news" => "news.ihtml", > "text" => "text.ihtml", > "links" => "links.ihtml")); > > $news= new news(); > $db=$news->getallNEWS ("news_extern",0,0,0,0); // get > news from the dbase > while($db->next_record()) > { > $t->set_var("author",$db->f("author")); > $t->set_var("newstext",$db->f("newstext")); > $t->set_var("title",$db->f("headline")); > $t->set_var("changed",date("d. M. Y, > H:i:s",$db->f("changed"))); > > $t->parse("contenttext","news",true); > } > > } > > > k here´s my example ;) > |