[PHPTAL] Accessing namespaces from templates

2010-07-08 Thread Thomas D.
Hi, we added namespace support to our library. So ,-[ Old class ]-. ¦ ?php ¦ ¦ class My_Foo ¦ ¦ {}¦ `---´ became ,-[ New class ]--. ¦ ?php ¦ ¦ namespace My; ¦ ¦ class Foo ¦ ¦ {} ¦ `´ Some classes have constants,

[PHPTAL] Re: Accessing namespaces from templates

2010-07-08 Thread Thomas D.
Hi, Kornel wrote: You don't need that experimental version. The problem is only in code parser for php: modifier, which has been extended to allow namespaces after 1.2.1 was released. So you version newer than 1.2.1 (try 1.2.2b or SVN). I upgraded PHPTal to v1.2.2b3 and it's working

[PHPTAL] Re: Accessing namespaces from templates

2010-07-08 Thread Thomas D.
Hi, I wrote: I upgraded PHPTal to v1.2.2b3 and it's working right now. Uhm, I got confused. I didn't saw that b4 is the current beta. http://phptal.org/download.html is still listing b3 and the latest news, which contains a link to b4, is wrongly dated to *2009*-06-01, so I didn't read it ;-)