Results 1 to 2 of 2

Thread: Fatal error in custom view

  1. #1
    nielsentm is offline Sugar Community Member
    Join Date
    Oct 2011
    Posts
    21

    Default Fatal error in custom view

    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';
        }


  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Fatal error in custom view

    Can you try changing the contruct to:
    PHP Code:
        public function __construct() {
            
    parent::__construct();
        } 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 2011-09-30, 03:49 PM
  2. Replies: 4
    Last Post: 2011-07-08, 10:00 PM
  3. Replies: 0
    Last Post: 2009-12-28, 02:10 AM
  4. Fatal Error loading custom relationship
    By kwoitena in forum Help
    Replies: 2
    Last Post: 2009-03-12, 09:27 AM
  5. Fatal Error: display() on view.list.php
    By robkatz in forum Help
    Replies: 2
    Last Post: 2007-12-18, 08:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •