|
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 |
axelf Smarty Rookie
Joined: 26 Jan 2012 Posts: 10
|
Posted: Thu Jan 26, 2012 8:59 am Post subject: eigenes Plugin - Problem bei Ausgabe des Contents |
|
|
Hi,
In der Doku zu Plugins und dem Parameter $content steht:
Achtung: Der Template-Abschnitt den Sie erhalten, wurde bereits von Smarty bearbeitet. Sie erhalten also die Template-Ausgabe, nicht den Template-Quelltext.
Nun habe ich das Problem, das ich nicht mehr auf das Array zugreifen kann, denn man erhält nicht den Wert sondern nur das Wort "Array"
Code: | {myblock}$viewdata.name{/myblock} |
viewdata.name ist ein Array und per Schleife wollte ich die Werte ausgeben. Weiß jemand wie man das machen kann? |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Jan 26, 2012 4:17 pm Post subject: |
|
|
{foreach $viewdata.name as $foo}
{$foo}
{/foreach} |
|
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
|