我尝试使用前端和后端为TYPO3构建扩展。尝试启动前端时出现此错误:
1297645190: Ext Direct error in "TYPO3\CMS\Core\ExtDirect\ExtDirectApi" with namespace: "TYPO3"\n Try to clear the TYPO3 cache and / or use paramater no_cache=1 as parameter in URL typo3/ajax.php\n\n >
Check also the following points:\n - configuration in ext_localconf.php: registration key should be like "TYPO3.MyExtension.Sample"\n - URL typo3/ajax.php: namespace parameter should be like: "TYPO3.MyExtension"\n - javascript: method\'s name should be like: "TYPO3.MyExtension.Sample.myMethod"\n
的Setup.txt
page = PAGE
page.10 = FLUIDTEMPLATE
page.10 {
file = EXT:rere/Resources/Private/Templates/Pruefling/Show.html
layoutRootPath = EXT:rere/Resources/Private/Layouts
}
page.includeJS{
file1 = EXT:rere/Resources/Public/js/jquery-2.1.1.min.js
file2 = EXT:rere/Resources/Public/js/bootstrap.js
file3 = EXT:rere/Resources/Public/js/jquery.tablesorter.min.js
file4 = EXT:rere/Resources/Public/js/Chart.min.js
file5 = EXT:rere/Resources/Public/js/rereGlobal.js
file6 = EXT:rere/Resources/Public/js/notenverwaltung.js
}
page.includeCSS{
file1 = EXT:rere/Resources/Public/css/resultrepository.css
file2 = EXT:rere/Resources/Public/css/bootstrap.min.css
}
ext_localconf.php
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'rere.' . $_EXTKEY, 'rerefrontend', array(
'Modul' => 'list, show, new, newFach, create, edit, update, delete',
'Fach' => 'list, show, new, create, edit, update, delete',
'Note' => 'list, show, new, create, edit, update, delete',
'Pruefling' => 'setPruefling, list, show, new, create, edit, update, delete',
'Intervall' => 'new, create, edit, update',
'Export' => 'exportPrueflinge, exportModuleUndFaecher, exportFach',
'Import' => 'new, importPrueflinge, importBackUp',
'Ajax' => 'searchPruefling',
'Intervall' => 'new, create, edit, update'
),
// non-cacheable actions
array(
'Modul' => 'list, show, new, newFach, create, edit, update, delete',
'Fach' => 'list, show, new, create, edit, update, delete',
'Note' => 'list, show, new, create, edit, update, delete',
'Pruefling' => 'setPruefling, list, show, new, create, edit, update, delete',
'Intervall' => 'new, create, edit, update',
'Export' => 'exportPrueflinge, exportModuleUndFaecher, exportFach',
'Import' => 'new, importPrueflinge, importBackUp',
'Ajax' => 'searchPruefling',
'Intervall' => 'new, create, edit, update'
)
);
我试过没有Javascript和CSS但同样的问题。
调用安装程序
<INCLUDE_TYPOSCRIPT: source="FILE: EXT:rere/Configuration/TyposSript/setup.txt">
。
答案 0 :(得分:0)
为什么要在 FE 插件中使用<f:be.container>
?
我不会给你正确的答案,因为你自己的代码是你所说的......你甚至没有向我们展示它?
提示,如果您因某些特定原因不需要f:layout
VH,请不要全部使用它 - 这不是必需的。