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

Generelle Frage zur Objekt Handhabung durch 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
dragon001
Smarty Rookie


Joined: 12 Feb 2005
Posts: 5

PostPosted: Wed Apr 04, 2012 11:21 pm    Post subject: Generelle Frage zur Objekt Handhabung durch Smarty Reply with quote

Hi,
ich habe bisher keine konkrete Lösung für ein kleines Problem gefunden.

Ich verwende Propel ORM als Datenbank Schnittstelle.
Wenn ich jetzt an das Template eine Liste von Werten übergeben möchte muß ich jedes mal erstmal eine Variablen Sammlung mittels foreach durchführen umd diese dann nochmals durch zu laufen und anzuzeigen.
Das ist im großen und ganzen sehr lästig und nicht resourcen schonend.
Die Werte der Datenbankabfrage liegen in der Form:

$abfrage->get<VariablenName in CamelCase>()

vor.
Ich hab aus Sicherheitsgründen die Gesamte PHP Ausführung in Templates gesperrt um meine Web Entwickler daran zu hindern Logik in die Templates zu packen und so das MVC Pattern auf zu weichen.

Allerdings beklagen Sie jetzt das Problem mit den Methods.
Ich hab hierfür noch keine Lösung gefunden und melde mich jetzt einfach mal, weil ich auch nicht weiß, nach was ich suchen soll.


Hof man kann mir hier helfen
^^


Chris
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