Re: [PHPTAL] ?Bug - setSource doesn't reset the template

2008-11-19 Thread Kornel Lesiński
On 19-11-2008 at 04:31:07 romtek <[EMAIL PROTECTED]> wrote: Please elaborate on this. Particularly, I don't know what an anonymous "" is. Perhaps, a short example would be helpful. If you use $phptal->setSource("error!"), PHPTAL will report that you've got error in " XXX" line 1, and won't t

Re: [PHPTAL] ?Bug - setSource doesn't reset the template

2008-11-18 Thread romtek
On Tue, Nov 18, 2008 at 4:11 AM, Kornel Lesiński <[EMAIL PROTECTED] > wrote: > > What's the path parameter for? >> > > For example it's displayed in error messages instead of anonymous > "". Please elaborate on this. Particularly, I don't know what an anonymous "" is. Perhaps, a short example

Re: [PHPTAL] ?Bug - setSource doesn't reset the template

2008-11-18 Thread Kornel Lesiński
On 18-11-2008 at 06:12:18 romtek <[EMAIL PROTECTED]> wrote: I'd like to understand the purpose of this method. Is it to initialize a template object with a template in memory, not in file? Yes. What's the path parameter for? For example it's displayed in error messages instead of anonymous

Re: [PHPTAL] ?Bug - setSource doesn't reset the template

2008-11-17 Thread romtek
On Mon, Nov 17, 2008 at 4:18 AM, Kornel Lesiński <[EMAIL PROTECTED] > wrote: > On 16-11-2008 at 08:24:11 Dave Looker <[EMAIL PROTECTED]> wrote: > > I needed to generate several templates all using the same set of data so >> I populated a single template and then reset the template before each >

Re: [PHPTAL] ?Bug - setSource doesn't reset the template

2008-11-17 Thread Kornel Lesiński
On 16-11-2008 at 08:24:11 Dave Looker <[EMAIL PROTECTED]> wrote: I needed to generate several templates all using the same set of data so I populated a single template and then reset the template before each execute. However using setSource() to load a template instead of setTemplate()

[PHPTAL] ?Bug - setSource doesn't reset the template

2008-11-16 Thread Dave Looker
I needed to generate several templates all using the same set of data so I populated a single template and then reset the template before each execute. However using setSource() to load a template instead of setTemplate() does not seem to properly reset the state of the template. I added