|
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 |
Lars Smarty n00b
Joined: 02 Jul 2004 Posts: 1
|
Posted: Wed Mar 09, 2005 11:02 am Post subject: array_push in smarty??? |
|
|
Moin, ich geben mit Code: | {[html_table cols=2 loop=$table table_attr='border="1" cellspacing="4" cellpadding="1"' tr_attr='valign=top' td_attr=$td]} | den Inhalt von $table als Tabelle aus.
Nun möchte ich aber unten an die Tabelle noch eine Zeile einfügen. Gibt es so etwas wie array_push, mit dem ich vor der Ausgabe meine Variable $table noch erweitern kann?
Oder hat jemand eine andere Idee? (append hat leider kein brauchbares Ergebnis geliefert...)
Danke. |
|
Back to top |
|
squig Smarty n00b
Joined: 01 Mar 2005 Posts: 1
|
Posted: Thu Mar 10, 2005 9:49 am Post subject: |
|
|
hola,
würde folgendes helfen ?
[php:1:3a1f7d34db]<?php
$table[] = "neues element"
?>[/php:1:3a1f7d34db]
das fügt deinem array einfach ein weiteres element hinzu.
bis däääääähne. |
|
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
|