PHP Typo3: working with templates in extension

<?php
        //Templatefile
        $this->templateCode = $this->cObj->fileResource($tmplfile);

        $template['content'] = $this->cObj->getSubpart($this->templateCode, '###SUBPART###');
        $markerArray['###MARKER1###'] = '';
        $markerArray['###MARKER2###'] = '';
        $markerArray['###MARKER3###'] = '';
        $content = $this->cObj->substituteMarkerArrayCached($template['content'], $markerArray);
?>

 

Schreibe einen Kommentar