Date: 03/22/01
- Next message: Murthy: "[phplib] TNS service name"
- Previous message: Aaron Webb: "[phplib] PHPLib bug"
- Next in thread: Olivier DEMAH: "Re: [phplib] Another bug with PHPLib Templates"
- Reply: Olivier DEMAH: "Re: [phplib] Another bug with PHPLib Templates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
These may already be documented, i'm not sure ... but the list archive
appears to be 'under construction' ...
When setting a block using set_block($parent, $handle, $name = ""), the only
way to get the block properly substituted as a variable called {block} (for
example) is to explicitly put in the braces yourself, i.e.
if you have a block like this in a file called $filename:
<!-- BEGIN block -->
{var}
<!-- END block -->
then the following php code works ONLY if the braces are placed around
{somerows}:
//this will output a list of numbers 0 to 9:
$t->set_file("thefile", "$filename");
$t->set_block("thefile", block, "{somerows}");
for($i=0;$i<10;$i++) {
$t->$set_var("var", "$i");
$t->parse("somerows", "block", true);
}
It's weird, and I just found it out thru experimentation. Some sort of bug?
I'm using phplib-7.2b.
Aaron Webb
Software Developer, Core Networks
Aaron.Webb <email protected>
www.CoreNetworks.com
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Murthy: "[phplib] TNS service name"
- Previous message: Aaron Webb: "[phplib] PHPLib bug"
- Next in thread: Olivier DEMAH: "Re: [phplib] Another bug with PHPLib Templates"
- Reply: Olivier DEMAH: "Re: [phplib] Another bug with PHPLib Templates"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

