-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In {foreach $recList as $key=>$item} , $item cannot show all keys (ex: {$item.sid}) #149
Comments
Had this issue some time ago. You can work around it using |
Yes, I saw that {$item['sid']} working. In my case {$item.sid} come from an {foreach}.
I found a solution for my case,... idea is that these situations to be reviewed. Maybe exist and another predefined keys, even not understand how and why |
Yes, this should be reviewed. But the |
See #76 |
I would expect, to access constants one has to use Consider this example: define('foo', 'bar');
$foo = 'baz';
$arr = array('foo'=>'Foo','bar'=>'Bar', 'baz'=>'Baz');
$Smarty->assign('foo', $foo);
$Smarty->assign('arr', $arr); Accessing |
…been removed from the $foo.bar syntax #149
I removed the inline constant support from the $foo.bar array syntax. The fix is in the master branch an will later be included in 3.1.30 |
Perfect. Thank you very much. |
I have an array associated from php to smarty tpl.
$recList have {$item.0|debug} :
Array
(
[feed_id] => 18124
[feed_ts] => 2014-04-16 10:02:59
[site_id] => 18052
[feed_truncate] => 0
[lang_iso] => fr
[feed_error] => XML KO
[sid] => 18052
)
In {foreach} any keys can be showed, except {$item.sid}, that show null even is not null.
The text was updated successfully, but these errors were encountered: