Typo3 Extbase AJAX without page typenum

前端 未结 5 544
不知归路
不知归路 2020-12-14 12:55

Is there any way to create AJAX calls in Extbase extension without using of page typeNum?

5条回答
  •  清歌不尽
    2020-12-14 13:58

    I had to change the first 0 of the makeInstance to the id of the page for it to work.

    $id = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id');
    $TSFE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController', $TYPO3_CONF_VARS, $id, 0);
    

提交回复
热议问题