我已經嘗試了新的組件添加到Joomla 2.5.8,並得到以下錯誤:添加新的組件到Joomla 2.5.8給錯誤
Error loading component: com_mycomp, 1
Error loading component:com_mycomp, 1
Error loading component: com_mycomp, 1
下面的步驟我都做:
- 在組件下創建了一個文件夾com_mycomp。並在com_mycomp下創建了一個文件
mycomp.php
。 - 在com_mycomp下創建了一個文件夾com_mycomp,文件名爲
administrator/components/
,文件admin.mycomp.php
。
訪問的URL:
http://localhost/joomla/index.php?option=com_mycomp
Error loading component: com_mycomp, 1
不知道如何解決它。
我認爲此鏈接將有所幫助http://docs.joomla.org/Developing_a_Model-View-Controller_%28MVC%29_Component_for_Joomla!2.5 __ _ Part_01 –
考慮共享您的組件文件,也許在https://gist.github.com/中,以便我們發現您的錯誤。 –
組件文件中沒有內容,它是空白的。我只是試圖加載組件。 – user1531121