id = $_REQUEST['record']; require_once('include/SubPanel/SubPanelTiles.php'); $subpanel = new SubPanelTiles($focus, $_REQUEST['loadModule']); if(!function_exists('get_form_header')) { global $theme; } // set up data for subpanels global $currentModule; $currentModule = $_REQUEST['loadModule']; $_REQUEST['action'] = 'DetailView'; //This line of code is critical. We need to ensure that the global controller bean is set to the $currentModule global variable $GLOBALS['app']->controller->bean = $focus; echo $subpanel->display(false); ?>