2017-02-16 140 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