Re: [Phplib-users] set_unknowns.
Brought to you by:
nhruby,
richardarcher
From: Liberty Y. <li...@em...> - 2003-06-20 15:41:58
|
Thank you very much. On Thu, 2003-06-19 at 18:01, Richard Archer wrote: > 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. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users |