On Fri, 03 Jun 2011 08:12:19 +0100, Anton Andriyevskyy <x.meg...@gmail.com> wrote:

Currently in PHPTAL I don't think it's possible, but you could easily modify PHPTAL to do it.

See PHPTAL_TalesRegistry->findUnregisteredCallback — loop through your classes there.

Alternatively, you could register all prefixes, but only before template is compiled. To do it, extend PHPTAL class and:

function parse()
        // register 300 prefixes here :)
        return parent::parse();

This way you won't get performance hit at run time.

regards, Kornel Lesiński

PHPTAL mailing list

Reply via email to