Re: [Phplib-users] set_unknowns.
Brought to you by:
nhruby,
richardarcher
From: Richard A. <rh...@ju...> - 2003-06-20 01:13:29
|
At 3:51 PM -0700 19/6/03, Liberty Young wrote: >If this helps, i'm using phplib from debian testing; > >dpkg --list | grep phplib >ii phplib 7.2d-3.1 Library for easy writing web Aah, that version of template.inc does not call finish from pparse. This was a bug I fixed quite a while ago. The best solution would be to upgrade your template.inc to the current version from CVS. That way you get a lot of other improvements too. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/phplib/php-lib-stable/php/template.inc?rev=1.12 Alternatively, to address only this problem, in your template.inc, change: function pparse($target, $handle, $append = false) { print $this->parse($target, $handle, $append); return false; } to function pparse($target, $handle, $append = false) { print $this->finish($this->parse($target, $handle, $append)); return false; } Or, without changing your template.inc at all, instead of using: $t->pparse("Outpute, "foo"); use: echo $t->finish($t->parse("Outpute, "foo")); ...R. |