Re: AW: [PEAR] HTML_Template_ITX: callback functions
| From: | Alexey Borzov | Date: | Mon, 12 May 2003 13:50:39 +0000 |
| Subject: | Re: AW: [PEAR] HTML_Template_ITX: callback functions | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5327@lists.php.net to get a copy of this message | ||
Greetings!
#swem | loci wrote:
i'm sorry that i didn't commented my source the right way. i am using the latest version of HTML_Template_IT[X]. i just renamed the class and the HTML_Template_IT function. all the names and the object $ht are correct ... but for testing purposes i downloaded the original-version and the problems are just the same ... but now the links to my easier example: php-code: http://nopaste.php-q.net/14294 html-template: http://nopaste.php-q.net/14295I suppose that this problem appears because you do an extra $t->performCallback(); before $t->show(); Try removing this call and the example will probably work OK. You can also consider using HTML_Template_Sigma 1.0 where you don't have to use a performCallback() method as callbacks are called automatically on parse(). See the example here: http://pear.php.net/manual/en/package.html.html-template-sigma.intro-syntax.php#package.html.html-template-sigma.intro-syntax.example