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

HTML-Code speichern und ausgeben

 
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
_bademeister
Smarty n00b


Joined: 04 Mar 2005
Posts: 4

PostPosted: Fri Mar 04, 2005 4:50 pm    Post subject: HTML-Code speichern und ausgeben Reply with quote

Hallo!

Ich möchte HTML-Dateien cachen und zwar nach folgendem Muster:

Es gibt in der Datenbank zum Beispiel Objekte mit der id 123, 1088 und 5214.

/object_cache/123.html
/object_cache/1088.html
/object_cache/5214.html

Wenn in der Datenbank etwas geändert wird, wird auch die gecachte Datei geändert.

Die Objekte gebe ich schon mit Smarty aus.

object.php?id=123

Kann ich den HTML-Code den display() erzeugt aufnehmen (Variable) und ausgeben (display()) lassen?

Ich habe mir schon die Cache-Funktionen angeschaut, da ist aber glaube nicht das dabei was ich suche.

Wichtig, ich möchte die gecachten Seiten ausliefern ohne das sie von "PHP und Smarty" noch einmal geparst werden.

_bademeister
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Fri Mar 04, 2005 5:36 pm    Post subject: Reply with quote

$smarty->fetch() liefert die ausgabe als string zurück.
siehe: http://smarty.php.net/manual/de/api.fetch.php
Back to top
View user's profile Send private message Send e-mail Visit poster's website
_bademeister
Smarty n00b


Joined: 04 Mar 2005
Posts: 4

PostPosted: Fri Mar 04, 2005 9:28 pm    Post subject: Reply with quote

messju wrote:
$smarty->fetch() liefert die ausgabe als string zurück.
siehe: http://smarty.php.net/manual/de/api.fetch.php


Danke! fetch() hatte ich übersehen.


_bademeister
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