/** * Display host template configuration in a popin window * * @method get * @route /hosttemplate/viewconf/[i:id] */ public function displayConfAction() { $params = $this->getParams(); $data = HostRepository::getConfigurationData($params['id']); $checkdata = HostTemplateRepository::formatDataForTooltip($data['templates']); $final = ""; foreach ($checkdata as $templateData) { $this->tpl->assign('checkdata', $templateData); $final .= $this->tpl->fetch('file:[CentreonConfigurationModule]host_conf_tooltip.tpl'); } $this->router->response()->body($final); /*$this->tpl->assign('checkdata', $checkdata); $this->tpl->display('file:[CentreonConfigurationModule]host_conf_tooltip.tpl');*/ }