Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

array_push in smarty???

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
Lars
Smarty n00b


Joined: 02 Jul 2004
Posts: 1

PostPosted: Wed Mar 09, 2005 11:02 am    Post subject: array_push in smarty??? Reply with quote

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
View user's profile Send private message
squig
Smarty n00b


Joined: 01 Mar 2005
Posts: 1

PostPosted: Thu Mar 10, 2005 9:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP