Author |
Message |
Topic: Nested foreach loops, both in php and smarty |
timgno
Replies: 12
Views: 33954
|
Forum: Smarty Development Posted: Wed May 01, 2013 8:21 pm Subject: Nested foreach loops, both in php and smarty |
And if I use unset() to free the memory for each cycle, so it does not use that much |
Topic: Nested foreach loops, both in php and smarty |
timgno
Replies: 12
Views: 33954
|
Forum: Smarty Development Posted: Thu Apr 25, 2013 9:48 am Subject: Nested foreach loops, both in php and smarty |
It is true!
But then I adopted another method to simplify, so I avoid to use a key useless:
$res = array();
$arr = $arr_handler->getObjects($criteria, true);
foreach (ar ... |
Topic: Nested foreach loops, both in php and smarty |
timgno
Replies: 12
Views: 33954
|
Forum: Smarty Development Posted: Sat Apr 13, 2013 8:20 am Subject: Nested foreach loops, both in php and smarty |
in this way the list is empty, I don't see anything even arr_list and tables.
order to function well, it is necessary to use assign for each cycle.
The real problem is that in this way see the l ... |
Topic: Nested foreach loops, both in php and smarty |
timgno
Replies: 12
Views: 33954
|
Forum: Smarty Development Posted: Sat Apr 13, 2013 12:10 am Subject: Nested foreach loops, both in php and smarty |
Thank you for your reply but don't work in any way
Others solutions? |
Topic: Nested foreach loops, both in php and smarty |
timgno
Replies: 12
Views: 33954
|
Forum: Smarty Development Posted: Fri Apr 12, 2013 6:16 pm Subject: Nested foreach loops, both in php and smarty |
Hello!
I have a problem with nested loops that do not give the desired result.
I show an example for you to understand ...
PHP:
foreach (array_keys($array) as $i)
... |
Topic: Cicli foreach annidati sia in php che smarty |
timgno
Replies: 0
Views: 27776
|
Forum: Language: Italian Posted: Fri Apr 12, 2013 4:29 pm Subject: Cicli foreach annidati sia in php che smarty |
Ciao!
Ho un problema con dei cicli annidati che non danno il risultato sperato.
Vi mostro un esempio per farvi capire...
PHP:
foreach (array_keys($array) as $i)
{ ... |
|