|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
gyopee Smarty Rookie
Joined: 27 Jan 2014 Posts: 14
|
Posted: Mon Jan 27, 2014 10:29 am Post subject: createData question |
|
|
Hey,
After using this code, I'm expecting foo to be a template variable holding value 'data' and bar holding 'bar-data'.
Code: | <?php
require_once 'libs/Smarty.class.php';
$smarty = new Smarty();
$smarty->debugging = true;
$smarty->assign('foo','smarty');
$data = $smarty->createData();
$data->assign('foo','data');
$data->assign('bar','bar-data');
$smarty->display('smarty.htm',$data);
?> |
Only foo variable is shown in the debugging window with value 'smarty'.
Why is that?
(I'm using Smarty 3.1.16.) |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Jan 27, 2014 4:11 pm Post subject: |
|
|
Thanks for bringing this up.
The fix is now in the SVN trunk and will later be included in 3.1.17 |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|