Re: [PHPTAL] custom nodes

2010-04-09 Thread Robert Goldsmith
Hello :) I don't know if someone has replied to you directly but this is what Tal Expression Modifiers are for: http://phptal.org/manual/en/split/custom-modifiers.html Understanding and writing them can be a little tricky as the documentation is not extensive but the key points to remember

Re: [PHPTAL] Changing PHPTAL i18n compilation

2010-04-09 Thread Robert Goldsmith
As part of my integration into Zend Framework, I wrote a replacement translator service for phptal. you basically just write a class that implements PHPTAL_TranslationService and then when you create the phptal instance you call its 'setTranslator' method and pass in an instance of your class.