[TYPO3-german] eiD Aufrufe

Christian Platt christian.platt at pharmaline.de
Mon Jan 28 18:34:00 CET 2013


Hallo Liste,


ich möchte aus einer Extension per EID auf Contentobjekte zugreifen. (4.5. LTS)

Dazu habe ich das eID wie folgt aufgebaut:
Quelle: http://www.typo3-tutorials.org/tutorials/entwicklung/typo3-und-ajax-wie-geht-das.html


class unsereKlasse {
 
    public function main() {
        $feUserObject = tslib_eidtools::initFeUser();
        $TSFEObject = tslib_eidtools::getTSFE();
        return json_encode(array('myResult' => 'World'));
    }
 
}
 
$output = t3lib_div::makeInstance('unsereKlasse');
echo $output->main();


Allerdings bekomme ich bei dem Aufruf einen 

"Fatal error: Call to private method tslib_eidtools::getTSFE() from context '"


Eigentlich sollten die doch public sein, oder?
http://doc-typo3.ameos.com/4.1.0/classtslib__eidtools.html


Liebe Grüße
Christian


More information about the TYPO3-german mailing list