hallo, bin am verzweifeln kA was nicht stimmt..habe meiner Meinung nach schon alles probiert!
hier mein code:
$templateCode = $this->cObj->fileResource($conf['templateFile']);
$tmpForm['total'] = $this->cObj->getSubpart($templateCode, '###TEMPLATE###');
$tmpForm['item'] = $this->cObj->getSubpart($tmpForm['total'], '###ITEM###');
dann kommt ne abfrage und dann:
while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$markerArray['###LABEL_FIRSTNAME###'] = $this->pi_getLL('label_firstname');
$markerArray['###FIRSTNAME###'] = $row['username'];
$markerArray['###ZIP###'] = $row['zip'];
$itemString .= $this->cObj->substituteMarkerArray($tmpForm['item'], $markerArray);
}
und dann der verzweifelte versuch das nochmal hinzukriegen...alles wie im tutorial gemacht die einzige ausgabe
sind jedoch immer nur die marker
$subpartArray['###CONTENT###'] = $itemString;
$content = $this->cObj->substituteMarkerArray($tmpForm['total'], $subpartArray);
wenn ich den itemString ausgebe, bekomm ich die korrekte ausgabe
via db wie sie aussehen muss, dasselbe wenn ich subpartarray an der stelle ###CONTENT### auslese...vollkommen korrekt...aber sobald ich substituteMarkerArray versuche bekomme ich nur eine zeile der gedivten marker:hier noch das template:
<body>
<!-- ###TEMPLATE### begin -->
<!-- ###CONTENT### -->
<!-- ###ITEM### -->
<div class="zeile">
<div class="spalte1">###LABEL_FIRSTNAME###</div>
<div class="spalte2">###FIRSTNAME###</div>
<div class="spalte3">###ZIP###</div>
</div>
<!-- ###ITEM### -->
<!-- ###CONTENT### -->
<!-- ###TEMPLATE### end -->
</body>
</html>
kann mir jemand sagen was nicht stimmt???
gruss boris