Re: [PHPTAL] Template name hashes

2012-08-15 Thread Kornel Lesi��ski
environment so that the only php allowed to execute is within a signed Phar > in order to add a strong new layer to our site security. > > Robert > - > Robert Goldsmith > rgoldsm...@names.co.uk > > > > > On 15 Aug 2012, at 17:11, Kornel Lesi��ski wrote: >

Re: [PHPTAL] Template name hashes

2012-08-15 Thread Kornel Lesi��ski
sed instead of the > PHPTAL class? > > Robert > - > Robert Goldsmith > rgoldsm...@names.co.uk > > > > > On 15 Aug 2012, at 15:41, Kornel Lesi��ski wrote: > >> The fact there are protected methods is historical. >> >> There can be

Re: [PHPTAL] Template name hashes

2012-08-15 Thread Kornel Lesi��ski
getPreFilterInstances() >setCodeFile() >getFunctionNamePrefix() > > Is there a specific reason for this or is it just historical? Obviously it is > much harder to subclass a class with private methods. > > Robert > - > Robert Goldsmith > rgoldsm...@names

Re: [PHPTAL] Template name hashes

2012-08-15 Thread Kornel Lesi��ski
The hash is computed in PHPTAL::getFunctionName(). Filename is built from that name. Subclass PHPTAL class and override this method to compute unique name from path/settings you care about. Also override cleanUpGarbage() to stop it from deleting compiled templates. -- regards, Kornel On