[phplib] use set_file two times... From: Iwan Birrer (iwanbirrer <email protected>)
Date: 04/02/01

Hello,

I have something like this in my file:

$tpl->set_file(array(
   "page" => "page_0.02.inc.html",
   "contents" => "conten_1.inc.html"
   ));

if (...)
{
    set_var(.....);
} else {
    
    $tpl->set_file("contents" => "content_2.inc.html"); // set another contents template
    set_var(.....);
}

$tpl->parse("CONTENTS", "contents", true);
$tpl->parse("CONTENTS", "page");
$tpl->p("CONTENTS");

the second set_file command doesn't change anyting ! What am I doing wrong ?

Hope somebody can help me

Thanks
Iwan Birrer