I have created a custom module (batch_Batches), with a custom view in sugarcrm 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:
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:
$action_view_map['myHello']= 'myHello';
modules\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';
}
}
I think you need either the map or the controller. I don’t think you need both. That could be causing the looping.