|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
Author |
Message |
Topic: There's something wrong with my if/else condition in index.p |
jonathan978123
Replies: 6
Views: 24244
|
Forum: General Posted: Wed Jun 30, 2021 5:16 pm Subject: There's something wrong with my if/else condition in index.p |
You'll want to upgrade smarty because you are using an old version.
Security fixes would be the main reason to keep smarty to date. |
Topic: foreach variables |
jonathan978123
Replies: 4
Views: 6722
|
Forum: General Posted: Tue Mar 09, 2021 8:21 pm Subject: foreach variables |
Thanks for the link.
I see my perception of foreach was not fully correct.
I will use end() https://www.php.net/manual/en/function.end.php to grab the last element in an array outside of the loop. ... |
Topic: foreach variables |
jonathan978123
Replies: 4
Views: 6722
|
Forum: General Posted: Thu Mar 04, 2021 8:07 pm Subject: foreach variables |
Hi AnrDaemon,
Thanks for your reply.
I'm quite sure that your second point is incorrect.
If I run the following PHP code:
<?php
$ary = [[1], [2], [3]];
... |
Topic: foreach variables |
jonathan978123
Replies: 4
Views: 6722
|
Forum: General Posted: Wed Mar 03, 2021 8:52 pm Subject: foreach variables |
Hi,
I recently discovered that variables within smarty loops do not seem to work the same as within PHP.
Smarty code:
{$ary = [[1], [2], [3]]}
... |
|
Page 1 of 1 |
All times are GMT |
Powered by phpBB © 2001, 2005 phpBB Group
|