Hi Forum!
Ich würde gerne die Funktion typoLink_URL in einer tcemainprocdm-Klasse aufrufen, bevor ein Datensatz im BE gespeichert wird... Bisher bin ich gescheitert... 🙁
Bisherige Versuche:
- ein lokales cObj erzeugen
include_once(PATH_site.'typo3/sysext/cms/tslib/class.tslib_content.php');
$cObj = t3lib_div::makeInstance('tslib_cObj');
- wie bei einer eID-Anwendung alles einbinden
$this->feUserObject = tslib_eidtools::initFeUser();
$this->TSFEObject = tslib_eidtools::getTSFE();
require_once(PATH_t3lib . 'class.t3lib_page.php');
require_once(PATH_tslib . 'class.tslib_pibase.php');
require_once(PATH_tslib . 'class.tslib_content.php');
require_once(PATH_t3lib . 'class.t3lib_stdgraphic.php');
require_once(PATH_tslib . 'class.tslib_gifbuilder.php');
$temp_TSFEclassName = t3lib_div::makeInstanceClassName('tslib_fe');
$GLOBALS['TSFE'] = new $temp_TSFEclassName($TYPO3_CONF_VARS, $page, 0, true);
$GLOBALS['TSFE']->tmpl = t3lib_div::makeInstance('t3lib_tstemplate');
$GLOBALS['TSFE']->tmpl->init();
$GLOBALS['TSFE']->sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
$GLOBALS['TSFE']->rootLine = $GLOBALS['TSFE']->sys_page->getRootLine(intval(144));
$GLOBALS['TSFE']->getConfigArray();
$this->cObj = new tslib_cObj();
Fehler:
Call to a member function push() on a non-object in [...]/typo3/sysext/cms/tslib/class.tslib_fe.php on line 2053
Hat jemand eine Idee wie man hier die Typolink-Funktionen nutzen kann?
Ciao,
Roman