Menu

Problem with templates

Help
Björn
2001-11-20
2002-07-08
  • Björn

    Björn - 2001-11-20

    Hi,

    i have some problem by removing unknown tags in a template. set set the variable to remove but nothing happens.

    here is my code

    $t1 = new Template($sbs_templates,"remove");
    $t1->set_file(array("header" => "header.inc",
                       "footer" => "footer.inc"));
    $pagetitel_set=$sbs_kunde." - ".$sbs_2001_0005_hl01;
    $t1->set_var(array(
              "SEITENTITEL" => $pagetitel_set,
              "COPYRIGHTS" => $copyright,
                  ));
    $t1->pparse("out",array("header"));
    $t1->pparse("out",array("footer"));

    whats wrong with it?

    bjoern

     
    • courou

      courou - 2002-07-08

      hello,

      in your code remove the virgule after $copyright

      $t1->set_var(array(
      "SEITENTITEL" => $pagetitel_set,
      "COPYRIGHTS" => $copyright
      ));

      bye
      courou

       

Log in to post a comment.