I created a custom module (batch_Batches), with a custom view in sugar crm 6.3.0.RC2. When navigating to index.php?module=batch_Batches&action=myhello I get the error: Fatal error: Nesting level too deep - recursive dependency? in C:\sugar2\SugarCRM\include\utils.php on line 1038
These are the files I created for the custom view. What am I missing?
modules\batch_Batches\views\view.myHello.php:
PHP Code: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";
}
}
modules\batch_Batches\action_view_map.php:
PHP Code:$action_view_map['myHello']= 'myHello';
modules\batch_Batches\controller.php:
PHP Code:if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class Batch_BatchesController extends SugarController {
function action_myHello()
{
$this->view='myHello';
}
}


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks