Date: 07/13/00
- Next message: NickM: "[phplib] Problem in num_rows()"
- Previous message: westd <email protected>: "[phplib] help: authentification that works with cookies but not GET"
- Next in thread: toby cabot: "Re: [phplib] Bug fixes for template.inc and documentation-4.html"
- Reply: toby cabot: "Re: [phplib] Bug fixes for template.inc and documentation-4.html"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This effects the template class if you are using set_block() or if you
really care about documentation.
1) template.inc had an error in set_block() with the call to preg_replace()
# The way it was...
# $str = preg_replace($reg, "{$name}", $str);
# The way it should be...
$str = preg_replace($reg, "\{$name}", $str);
2) documentation-4.html had a bug in one of the example scripts, in the php
file that pertains to the template example (Section 4.2, way at the bottom).
What should have been typed as "OUT" had been typed "out". The correct code
follows...
# build out from box, then build out from page...
# $t->parse("out", array("box", "page"));
$t->parse("OUT", array("box", "page"));
# finish out and print it.
# $t->p("out");
$t->p("OUT");
--- Tom Brownridge
- Next message: NickM: "[phplib] Problem in num_rows()"
- Previous message: westd <email protected>: "[phplib] help: authentification that works with cookies but not GET"
- Next in thread: toby cabot: "Re: [phplib] Bug fixes for template.inc and documentation-4.html"
- Reply: toby cabot: "Re: [phplib] Bug fixes for template.inc and documentation-4.html"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

