|
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 |
demental Smarty Rookie
Joined: 11 Jan 2006 Posts: 20 Location: Lost in the French deeeeep countryside
|
Posted: Fri Feb 03, 2006 12:28 pm Post subject: reset an array after a foreach |
|
|
Hi everybody.
I have an array assigned to smarty, that I want to display twice on the same page, but in a different way (It's a FAQ page).
For now I have to assign the array plus a copy of it.
It would be far better if I could have only one array assigned, and reset it after the first loop.
The other idea was to make a capture, and append it inside the first foreach.
I checked in the manual but did not find anything about these two. Can someone advise me ? |
|
Back to top |
|
TGKnIght Smarty Junkie
Joined: 07 Sep 2005 Posts: 580 Location: Philadelphia, PA
|
|
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
|