script

Monday, May 13, 2013

MVC in TYPO3

var $cObj;
var $records_per_page;
var $language;
   
function __construct()
{
        $this->cObj = t3lib_div::makeInstance('tslib_cObj');
        $this->records_per_page = 5;
        $this->language = $GLOBALS['TSFE']->sys_language_uid;
}    


function test()
{

$templateFile = $this->conf['templateFile'] ? $this->conf['templateFile'] : 'EXT:imagevideo/pi1/view/image.html';
$this->template = $this->cObj->fileResource($templateFile);
$subpart = $this->cObj->getSubpart($this->template, '###GET_IMAGE###');
$markerArray = array();



return $this->cObj->substituteMarkerArrayCached($subpart, $markerArray);
}

No comments:

Post a Comment