RE: [PHPTAL] Prefilter fails

2009-02-20 Thread phptal
> [mailto:phptal-boun...@lists.motion-twin.com] On Behalf Of > Kornel Lesinski > > Ah, that's a bug I've fixed last month :) > > You need to make PHPTAL re-parse the template, otherwise > changes in prefilter won't be noticed (touch the file or > clear cache in /tmp). Thanks, Kornel; all work

Re: [PHPTAL] Prefilter fails

2009-02-19 Thread Kornel Lesiński
On 19-02-2009 at 16:28:35 wrote: Added that and PHP no longer dies. But I still can't get the Prefilter to change the output even if I totally replace the source using: filtered content"; } } $tpl = new PHPTAL('mytemplate.html'); $tpl->setPreFilter(new MyPreFilter()); echo $tpl->execute();

RE: [PHPTAL] Prefilter fails

2009-02-19 Thread phptal
Hi, > Sorry, manual fails to mention that you need to add > > require_once 'PHPTAL/Filter.php'; > > to your code. I'll make that unnecessary in next version of PHPTAL. > > regards, Kornel Thanks, Kornel. Added that and PHP no longer dies. But I still can't get the Prefilter to change the

Re: [PHPTAL] Prefilter fails

2009-02-19 Thread Kornel Lesiński
On 19-02-2009 at 07:59:53 wrote: I thought PHP's "implements" only worked with "interface" but the PHPTAL.php 1_1_15 doesn't use "interface" anywhere, so this is never going to work. Have I misunderstood or is the manual out of date on this point? Sorry, manual fails to mention that you

[PHPTAL] Prefilter fails

2009-02-19 Thread PHPTAL
Hi everyone, Very impressed by PHPTAL and define-macro and define-slot work well for me. However now trying to use the Prefilter (as in the manual at http://phptal.motion-twin.com/manual/en/split/ar06s04.html ). The code suggested (below) causes my PHP v5 to die. I thought PHP's "implements" on