Re: [PHPTAL] Implementing phptal modifiers as static methods in multiple classes

2011-06-12 Thread Anton Andriyevskyy
This still initializes all 300 prefixes, while the goal is to initialize them either: 1) on-demand, or 2) by declaring prefixes in page / view / controller classes - for prefixes which are unique for particular template usage However I can see that each prefix registered is not more then an entry

Re: [PHPTAL] Implementing phptal modifiers as static methods in multiple classes

2011-06-05 Thread Kornel Lesiński
On Fri, 03 Jun 2011 08:12:19 +0100, Anton Andriyevskyy 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 prefi