[phplib] Blocks in template class From: Ninjaman (ninjaman <email protected>)
Date: 04/27/01

Hi all,

I am trying to learn how to use phpLIBs Template class.

Problem is that the example in the documentation doesn't seam to work.

The complete source can be found at the bottom of the following webpage:
http://phplib.netuse.de/documentation/documentation-4.html

Instead of outputting the table rows it outputs the text rows in its place.

Snippets of the code:

    $t->set_block("box", "row", "rows");
    ---
    for ($i=1; $i<=3; $i++) {
        $n = $i;
        $nn = $i*10;
        $t->set_var(array("NUM" => $n, "BIGNUM" => $nn));
        $t->parse("rows", "row", true);
    }
    ---
    my line here
    ---
    $t->parse("out", array("box", "page"));

Adding in a line I get the results out but not the rest of the box.ihtml
file.
    $t->parse("box", "rows");

I can't really get my head around this. Can anyone look at the doc and tell
med what is missing? I have a feeling it has something to do with how the
"rows" are linked to their place in "box".

/NInjaMan

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>