Vielleicht eine komisch Frage, es würde mich aber interessieren.
Als Beispiel die Ausgabe einer Tabelle im Frontend:
aus
wird so ganz schnellPHP-Code:$Model = new \ContentModel();
$Model->type = 'table';
$Model->tableitems = unserialize('a:2:{i:0;a:3:{i:0;s:5:"hfghf";i:1;s:5:"fghfh";i:2;s:6:"fghfgh";}i:1;a:3:{i:0;s:3:"fhf";i:1;s:3:"fhf";i:2;s:4:"fhfh";}}');
$strContent = new \ContentTable($Model);
$strContent = $strContent->generate();
print_r($strContent);
HTML-Code:<div class="ce_table block"> <table id="table_"> <tbody> <tr class="row_0 row_first even"> <td class="col_0 col_first">hfghf</td> <td class="col_1">fghfh</td> <td class="col_2 col_last">fghfgh</td> </tr> <tr class="row_1 row_last odd"> <td class="col_0 col_first">fhf</td> <td class="col_1">fhf</td> <td class="col_2 col_last">fhfh</td> </tr> </tbody> </table> </div>
, also gut formatierter Code.
Ist das ok, oder macht man so etwas nicht?
Danke im voraus Nils

Zitieren
, ich weiß nur noch nicht in welche Richtung, darum auch meine Frage hier.
