我想創建我的第一個組件爲Joomla 2.5,但是當試圖執行此錯誤:首先組件創建失敗
Error: 500 You may not be able to visit this page because of:
- 一個徹頭徹尾的最新書籤/喜愛
- 擁有了過期的上市爲這個網站
- 輸入錯誤的地址
- 你有這個頁面
- 將R沒有進入搜索引擎沒有發現被控制的資源。
- 處理您的請求時發生錯誤。
View not found [name, type, prefix]: transportation, html, transportationView
我現在已經開發了很基本的,這是在網站/組件/ com_transportation /控制器/ Controller.php這樣控制器
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controller library
jimport('joomla.application.component.controller');
class TransportationController extends JController {
}
而且在網站/組件/ com_transportation/views/view.html.php此:
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla view library
jimport('joomla.application.component.view');
class TransportationViewTransportation extends JView {
// Overwriting JView display method
function display($tpl = null) {
// Assign data to the view
$this->msg = 'Hello World';
// Display the view
parent::display($tpl);
}
}
我失蹤了什麼?哪裏不對?
謝謝,這是問題,現在它的工作原理 – ReynierPM 2013-03-01 12:04:37