function hotspot($source = null) { if (!empty($source)) { global $sectionObj; //FIXME there is NO 'page' object and section has not _construct method $page = new section($sectionObj->id); $modules = $page->getModulesBySource($source); //FIXME there is no getModulesBySource method anywhere //eDebug($modules);exit(); foreach ($modules as $module) { renderAction(array('controller' => $module->type, 'action' => $module->action, 'instance' => $module->id)); } } }