我已经创建了一个自定义模块(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';
}
}