[PHPTAL] HTTP paths for templates
Sean Hodges
shodges at wav2.com
Tue Jan 8 14:22:05 CET 2008
Hey,
I'm trying to parse templates from an HTTP path, are there any plans to
include http:// path support to the template parser in PHPTAL? For example:
$tal = new PHPTAL("http://mysite.com/templates/mytemplate.html");
$tal->execute();
I'm currently using PHPTAL 1.1.9.
I attempted to patch this myself today. I replaced all the file_exists()
calls, which are known to have problems with http:// paths, with an
HTTP-friendly function, but then hit a weird problem where
PHPTAL_FileSourceResolver->resolve() would be called but nothing in the
function is executed (even outside the foreach loop!).
Any suggestions?
More information about the PHPTAL
mailing list