[TYPO3-german] this->settings in eid Klassen

Bernd Pier macbepepi at me.com
Mon Feb 27 13:58:41 CET 2017


Am 27.02.17 um 11:42 schrieb Christian Platt:
> Hallo Alexander,
>
> all done:
>    $GLOBALS['TSFE']->connectToDB();
>    $GLOBALS['TSFE']->fe_user = $feUserObj;
>   $GLOBALS['TSFE']->id = $pid;
>   $GLOBALS['TSFE']->determineId();
>   $GLOBALS['TSFE']->getCompressedTCarray(); //Comment this line when used for TYPO3 7.6.0 onwards
>
>   $GLOBALS['TSFE']->initTemplate();
>   $GLOBALS['TSFE']->set_no_cache();
>   $GLOBALS['TSFE']->getConfigArray();
>   $GLOBALS['TSFE']->includeTCA();
>
>
>
> Wie gesagt: auf andere Configurations Arrays z.B. tt_news kann ich zugreifen..
>
> Kann es daran liegen, dass die pi-based so zu beklommen sind, extbase setup.txt Inhalte jedoch nicht?
>
> Christian
>
>
>
>> Am 26.02.2017 um 09:44 schrieb Alexander Averbuch <alav at gmx.net>:
>>
>> Hallo Christian,
>>
>> hast du vorher
>>      $GLOBALS['TSFE']->determineId();
>>       $GLOBALS['TSFE']->initTemplate();
>>       $GLOBALS['TSFE']->getConfigArray();
>> gemacht?
>> _______________________________________________
>> TYPO3-german mailing list
>> TYPO3-german at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
>
Hallo Christian,

hast du vom Objekt ne Instanz erstellt? Sowas wie:
$GLOBALS['TSFE'] = 
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController', 
$TYPO3_CONF_VARS, $pid, 0, TRUE);

Grüsse

Bernd


More information about the TYPO3-german mailing list