Re: [PHPTAL] A Tale returning a string with several expressions

2009-12-02 Thread Kornel Lesinski
On 1 Dec 2009, at 23:46, spaze wrote: Is there anything I'm missing or do I need to refactor my stuff to be able to work just as one expression (e.g. Foo::canHaz()- >bar('waldo')->gimmeQuux())? Yes, you should refactor it. Your code should return string to output, allowing PHPTAL to escape

[PHPTAL] A Tale returning a string with several expressions

2009-12-01 Thread spaze
Hi all, I have a Tale looking sort of like this $code = '$foo = new Foo(); $foo->bar(\'waldo\'); $foo->gimmeQuux();'; return $code; While this was working like a charm in PHPTAL 1.1.x, it generates parse error in 1.2.x, have checked the compiled templates and seems that now everything is wrapped