2017-02-16 152 views
0

我正在尝试使用TYPO3 Version 6.2构建扩展。TYPO3 6.2后端扩展

我在Extension Builder for 6.2中构建模型。 我已经添加了一个后端模块,它应该在扩展管理器中的后端显示数据。 这工作正常,但是当我试图点击后端则显示以下信息:

Sorry, the requested view was not found. The technical reason is: No template was found. View could not be resolved for action "list" in class "SeminarCas\SemCas\Controller\KontaktController".

模板位于下的资源/私有/后端/模板/ KONTAKT。以下是文件:Edit.html,List.html,Show.html

回答

0

我已经添加它,现在我试图重新安装,并得到以下错误:

Please check your uploaded extension "sem_cas". The configuration file "ext_emconf.php" seems to be invalid.

这是

<?php 

$EM_CONF[$_EXTKEY] = array(
    'title' => 'Seminar CAS', 
    'description' => '', 
    'category' => 'be', 
    'author' => '', 
    'author_email' => '', 
    'state' => 'alpha', 
    'internal' => '', 
    'uploadfolder' => '0', 
    'createDirs' => '', 
    'clearCacheOnLoad' => 0, 
    'version' => '', 
    'constraints' => array(
     'depends' => array(
      'typo3' => '6.2', 
     ), 
     'conflicts' => array(
     ), 
     'suggests' => array(
     ), 
    ), 
); 
+0

你的扩展密钥是什么?不是sem_cas? – jokumer

+0

这是sem_cas 这个问题可能是从PHP风暴? 我已经从后端下载并在那里打开它。 但我已经删除了从phpstorm – user3741086

+0

创建的档案夹中的.idea文件夹。您的ext_emconf.php文件看起来有效。文件.idea不应位于您的虚拟主机上。不知道,你的虚拟主机上的ext_emconf.php文件会发生什么。 – jokumer

2

通常FLUID模板将在扩展搜索文件夹下EXT:sem_cas /资源/个人/模板/。如果你已经找到了后端模块的流体模板另一个地方,在全局负载Typo脚本定义这个,最好是在EXT:sem_cas/ext_typoscript_setup.txt下面的内容:

# BE Module configuration 
module.tx_semcas.view { 
    templateRootPath = EXT:sem_cas/Resources/Private/Backend/Templates/ 
    partialRootPath = EXT:sem_cas/Resources/Private/Backend/Partials/ 
    layoutRootPath = EXT:sem_cas/Resources/Private/Backend/Layouts/ 
} 
+0

文件没有被Extensi创建的ext_emconf.php文件在建设者。 我应该创建一个新的只有在这个文件中的内容? 是否与TYPO3 6.2兼容? – user3741086

+0

是的只是添加一个文件ext_typoscript_setup.txt与你的扩展中的这个内容,FLUID正在与6.2,因此你得到错误:对不起,请求的视图没有被发现 – jokumer

+0

在TYPO3 CMS 8使用数组语法的路径的像templateRootPath.0 = EXT:sem_cas/... – jokumer