Re: [SMARTY-DEV] Append broken in version 2.2.0
| From: | Monte Ohrt | Date: | Fri, 12 Jul 2002 15:21:12 +0000 |
| Subject: | Re: [SMARTY-DEV] Append broken in version 2.2.0 | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-183@lists.php.net to get a copy of this message | ||
This is fixed in CVS.
Jan Rosier wrote:
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 *-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.