ich bin gerade dabei ein Modul zu bauen, bei dem ich mit einer for-Schleife Eingabemöglichkeiten generieren will:
Code: Alles auswählen
<?php
if( $edit ) {
$ocType = new cTypeGenerator();
$nr = 1;
for($x = $mod_cfg['anz_begin']; $x < ($mod_cfg['anz_begin']+$mod_cfg['anz_partner']); $x++) {
$outputList[] = array(
'num' => $nr,
'text' => stripslashes($ocType->getGeneratedCmsTag("CMS_HTML", $x)),
'image' => stripslashes($ocType->getGeneratedCmsTag("CMS_IMG", $x)),
'image_edit' => stripslashes($ocType->getGeneratedCmsTag('CMS_IMGEDITOR', $x)),
'link' => stripslashes($ocType->getGeneratedCmsTag('CMS_LINKEDITOR', $x)),
);
$nr++;
}
}
?>
Speichern tut Contenido trotzdem, aber die Fehlermeldung stört natürlichWarning: Cannot modify header information - headers already sent by (output started at [###]contenido/includes/include.con_editcontent.php(135) : eval()'d code:10) in [###]contenido/classes/content_types/class.content.type.imgeditor.php on line 151
Gibt es vielleicht eine andere Klasse oder Möglichkeit, um das umzusetzen?
Schöne Grüße
Lars