On 19-02-2009 at 07:59:53 <php...@jakeman.plus.com> wrote:

<?php
require_once 'PHPTAL.php';
class MyPreFilter implements PHPTAL_Filter {
    public function filter($source){
        return $source;
    }
}
?>

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 need to add require_once 'PHPTAL/Filter.php';
to your code. I'll make that unnecessary in next version of PHPTAL.


--
regards, Kornel



_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to