弃用老式的AJAX请求

huangapple go评论67阅读模式
英文:

Deprecate old-school AJAX requests

问题

我在尝试将 TYPO3 8 升级到 TYPO3 9.5.13 时遇到了一个问题:“Call to undefined method TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler()”。

我的代码如下:

if (TYPO3_MODE == 'BE') {

	\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler(
		'BackendController::functionloaderAction',
		'DmprextVendor\DmprExt\Controller\BackendController->functionloaderAction'
	);
}

希望对你有所帮助。

英文:

I got an issue "Call to undefined method TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler()" when I am trying to upgrade typo 3 8 to typo 3 9.5.13.

My code is:

if (TYPO3_MODE == 'BE') {

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler(
	'BackendController::functionloaderAction',
	'DmprextVendor\DmprExt\Controller\BackendController->functionloaderAction'
);

}

答案1

得分: 1

也许您需要查看此更改日志:registerAjaxHandler在TYPO3 v8和v9上已弃用。

https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/7.6/Breaking-69916-RegisteredAJAXHandlersReplacedByRoutes.html

英文:

Maybe your need to check out this change log: registerAjaxHandler ist deprecated on TYPO3 v8 & v9.

https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/7.6/Breaking-69916-RegisteredAJAXHandlersReplacedByRoutes.html

huangapple
  • 本文由 发表于 2020年1月6日 18:56:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/59610834.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定