Skip to content
Drarok edited this page May 7, 2013 · 2 revisions

The PHPTAL developers have accepted a pull request enabling TALES to be namespaced, but that's not yet released, so in the meantime you'll need to patch your copy of PHPTAL 1.2.2 to use the ZTal TALES and Macros.

The patch accepted onto the PHPTAL project can be viewed here, and applies to the compileToPHPExpressions function. Four backslashes need to be added the the preg_match pattern, changing it from '/^([a-z](?:[a-z0-9._-]*[a-z0-9])?):(.*)$/si' to '/^([a-z](?:[a-z0-9._\\\\-]*[a-z0-9])?):(.*)$/si'.

That's it!

Clone this wiki locally