Append broken in version 2.2.0
| From: | Jan Rosier | Date: | Fri, 12 Jul 2002 13:52:00 +0000 |
| Subject: | Append broken in version 2.2.0 | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-182@lists.php.net to get a copy of this message | ||
This works!
require('Smarty.class.php');
$smarty = new Smarty;
$smarty->debugging = TRUE;
$smarty->append('test', 'sdf');
$smarty->append('test', 'asdf');
$smarty->display('test.tpl');
This not! (Note the added assign)
require('Smarty.class.php');
$smarty = new Smarty;
$smarty->debugging = TRUE;
$smarty->assign('test', 'sdf');
$smarty->append('test', 'sdf');
$smarty->append('test', 'asdf');
$smarty->display('test.tpl');
It will generate this error:
Fatal error: [] operator not supported for strings in Smarty.class.php on
line 255
Just my 2 cents,
Jan Rosier
* The superior man is distressed by the limitation of his ability; he is not
distressed by the fact that men do not recognize the ability he has. -
Confucius *