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

romtek romtek at gmail.com
Tue Nov 18 07:12:18 CET 2008


On Mon, Nov 17, 2008 at 4:18 AM, Kornel Lesiński <kornel at aardvarkmedia.co.uk
> wrote:

> On 16-11-2008 at 08:24:11 Dave Looker <dave at metro-email.com> 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() does
>> not seem to properly reset the state of the template.  I added the two lines
>>
>>         $this->_prepared = false;
>>         $this->_functionName = null;
>>
>
> You're right. It's now fixed in SVN.


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? What's the path
parameter for?

Roman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/phptal/attachments/20081118/de961e53/attachment.htm


More information about the PHPTAL mailing list