Re: [Phplib-users] phplib templates blocks
Brought to you by:
nhruby,
richardarcher
|
From: anze <an...@vo...> - 2002-05-17 14:07:19
|
> I don't want the html inside the blocks to print if the block is
> undefiened. For example:
>
> <!-- BEGIN TheBlock -->
> I don't want this text to show if the block "TheBlock" is undefiened.
> <!-- END TheBlock -->
>
> Do i need to hack the set_block method?
> Has anyone else already done this?
I suppose you mean that block is not parsed, but it should still be
defined... Otherwise PHPlib doesn't know that this is a block.
After set_block() use set_var("TheBlock",""). "TheBlock" is of course
varname, not block-name - but it is best to have those the same anyway.
Have fun!
Anze
|