我已經創建了一個自定義模塊(batch_Batches),在sugarcrm 6.3.0.RC2中具有自定義視圖。當導航到index.php?module=batch_Batches&action=myhello
我得到的錯誤:自定義糖crm視圖中的致命錯誤
Fatal error: Nesting level too deep - recursive dependency? in C:\sugar2\SugarCRM\include\utils.php on line 1038
這些是我的自定義視圖中創建的文件。我錯過了什麼?
模塊\ batch_Batches \視圖\ view.myHello.php:
if (!defined('sugarEntry') || !sugarEntry)
die('Not A Valid Entry Point');
require_once('include/MVC/View/SugarView.php');
class myHello extends SugarView {
public function __construct() {
parent::SugarView();
}
public function display() {
echo "ok";
}
}
模塊\ batch_Batches \ action_view_map.php:
$action_view_map['myHello']= 'myHello';
模塊\ batch_Batches \ Controller.php這樣:
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class Batch_BatchesController extends SugarController {
function action_myHello()
{
$this->view='myHello';
}
}