MyXoops Forum

Forum - myXOOPS German Support

6 - 2 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

Aw: Templatehandling

Betreff: Aw: Templatehandling
von Goffy am 22.12.2012 09:47:42

Hallo Alfred Danke für Deine Mühe Ja, in der Datenbank wird der html-Quellcode abgespeichert
<p>Das ist mein Newslettertext</p>
Verarbeitung erfolgt so:
$tpl = new XoopsTpl();

$obj_letter =& $letterHandler->get($_REQUEST["letter_id"]);
$template = $template_path.$obj_letter->getVar("letter_template").".html";
$tpl->assign('sex', $recipient["subscr_sex"]);
$tpl->assign('firstname', $recipient["firstname"]);
$tpl->assign('lastname', $recipient["lastname"]);
$tpl->assign('content', $obj_letter->getVar("letter_content"));
$tpl->assign('unsubscribe_url', XOOPS_URL.'/modules/xNewsletter/');
$tpl->assign('subscr_email', $recipient["email"]); 

echo 
$tpl->fetch($template);
Hoffe, das hilft Dir Danke

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5732 26.11.2025 15:22
efkan Gehe zum letzten Beitrag
Modulentwicklung XOOPS Custom Field Module 1 2061 24.11.2025 11:21
Goffy Gehe zum letzten Beitrag