Typo3 无法将插件添加到extbase扩展
我用键Typo3 无法将插件添加到extbase扩展,typo3,extbase,Typo3,Extbase,我用键Pi3在扩展中添加了第三个插件 在我的ext\u localconf.php中,我配置了新插件: \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( 'Vendx.' . $_EXTKEY, 'Pi3', array( 'New' => 'listnew', ), // non-cacheable actions array( 'New' => 'listnew', ) ); 在我的ext_ta
Pi3
在扩展中添加了第三个插件
在我的ext\u localconf.php
中,我配置了新插件:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Vendx.' . $_EXTKEY,
'Pi3',
array(
'New' => 'listnew',
),
// non-cacheable actions
array(
'New' => 'listnew',
)
);
在我的ext_tables.php
中,我注册了它:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$_EXTKEY,
'Pi3',
'New Items'
);
我用listnewAction()
创建了Classes/Controller/NewController.php
,还创建了Resources/Private/Templates/Listnew.html
当我安装扩展并尝试向站点添加新插件时,我无法在插件下拉列表中查看该选项,因为它被卡住了。它甚至无法打开,整个后端都卡住了。所以我猜一定是插件配置/注册的问题
为什么会发生这种情况?我错过了什么??
另外,当我删除该插件时,扩展正常工作,我可以使用下拉菜单选择其他2个插件中的一个 建议:不要在操作或控制器名称中使用“new”之类的保留字,否则会导致意外错误 谢谢你的提示。我已经对它进行了修改,但仍然没有做任何修改。我只是在另一个系统上测试了它,似乎问题出在我的dev实例上。不知道出了什么问题。我会深入调查并发布有用的信息。