[Smarty 2.3.1] Problems with append
| From: | Lech Rychliński | Date: | Thu, 05 Dec 2002 20:53:48 +0000 |
| Subject: | [Smarty 2.3.1] Problems with append | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-371@lists.php.net to get a copy of this message | ||
Hi.
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?
greetings
--
Lech Rychliński <> l.rychlinski@w3crew.com.pl <> lejzik.w3crew.com.pl