Re: [phplib] templates and blocks From: Gabriele Bartolini (g.bartol <email protected>)
Date: 07/12/00

Ciao ...

>I'm new to the use of PHPLib, and fairly new to PHP, but still I would like
>to do some cool programming...

So do I. But I am pretty new too and a few days I posted a question
regarding templates and now I start to understand them.

>I use the blocks to make the rows in a file, but when there is no row, I
>would want the block to disappear. I don't seem to be able to do it.
>Is there a way to do it ?

Well ... I believe you gotta think of the output managing the block result
as a variable. You can put inside whatever you want, and usually the result
of the block parsing. But maybe you can assign to it a value such as "No
results ..." .

If you parse the block and put the parsed value into the template variable
"MyOutput", which is contained into another template file, you can change
its value with setvar to whatever you think is right.

I don't know if I gave you some useful help, I hope (this would mean I am
understanding templates) ;-)

Ciao
-Gabriele

-------------------------------------------------

Gabriele Bartolini
Computer Programmer (are U sure?)
U.O. Rete Civica - Comune di Prato
Prato - Italia - Europa

e-mail: g.bartol <email protected>
http://www.po-net.prato.it

-------------------------------------------------
A "Supernova" is the celestial
equivalent of "rm -rf /*" with
root permissions.
-------------------------------------------------

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