Re: [SMARTY-DEV] Re: [Smarty 2.3.1] Problems with append
| From: | Monte Ohrt | Date: | Tue, 24 Dec 2002 14:40:32 +0000 |
| Subject: | Re: [SMARTY-DEV] Re: [Smarty 2.3.1] Problems with append | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-485@lists.php.net to get a copy of this message | ||
append() is used to append a value to the end of an assigned array. If
you append a value to a string, the string is converted to an array and
the new value is appended.
Monte
On Tue, 2002-12-24 at 06:39, Slawomir Pucia wrote:
> Lech Rychlinski wrote:
> > First of all it's posible that I'm not right 'cause it's late in this
> > case
> > ignore me please, but I think that something is wrong with append method.
> > When I use assign then _tpl_vars contains an array of strings, when I use
> > append then _tpl_vars contains an array of array's. In fetch method
> extract
> > returns string Array so we've got nothing.
> > I put sth like this right before extract in fetch method:
> > foreach ($this->_tpl_vars as $field => $value)
> > if (is_array($value))
> > $this -> _tpl_vars[$field] = join('', $value);
> > to verify this case and it helped.
> > So, maybe there is a mistake?
>
>
> So, gentelmen, when will this issue be addressed? It's been few weeks now,
> and there is no feedback from you. And append() is probably still broken
> (just tried a fresh cvs version).
>
>
> slawek-
--
Monte Ohrt <monte@ispi.net>