Re: [PHPTAL] Experimental version with PHP 5.3 namespaces

2010-01-27 Thread Marco Pivetta
Making phptal_tales() a static methods could be a good idea, but static methods are a bit slower :\ To avoid namespace pollution it could be better if you use PHPTAL\phptal_tales() or better PHPTAL\tales() A simple find/replace should be able to fix that problem with code compatibility... or am I w

[PHPTAL] Experimental version with PHP 5.3 namespaces

2010-01-27 Thread Kornel Lesiński
Little background story: PHPTAL has been accepted as PEAR package, but PEAR requires change of class names from PHPTAL_* to HTML_Template_PHPTAL_*, which would break all existing code for IMHO not a good enough reason. Therefore I've decided that if I'm having to break existing code, at lea

Re: [PHPTAL] "There is no namespace declared" error in v. 1.2.1

2010-01-27 Thread Kornel Lesiński
On 27-01-2010 at 08:39:36 Murat Çorlu wrote: Is there a simple way to define a custom namespace globally for all of our templates like tal and metal namespaces? No, and I'm not planning to add it. TAL namespaces are already in violation of the XML spec. -- regards, Kornel __

Re: [PHPTAL] "There is no namespace declared" error in v. 1.2.1

2010-01-27 Thread Murat Çorlu
Is there a simple way to define a custom namespace globally for all of our templates like tal and metal namespaces? romtek wrote: 2009/11/12 Kornel Lesiński > xmlns stops working when you close element. > > > > > does nothing. > > > > > > > > > should work. It worked. Thank you. -