parameters[$key] = $value; } function viewController() { global $theme; $themePath = "themes/".$theme."/"; $imagePath = $themePath."images/"; $smarty = new vtigerCRM_Smarty(); foreach($this->parameters as $k => $v) { $smarty->assign($k, $v); } $smarty->assign('MODULE', 'Import'); $smarty->assign('THEME', $theme); $smarty->assign('IMAGE_PATH', $imagePath); return $smarty; } function display($templateName, $moduleName='') { $smarty = $this->viewController(); if(empty($moduleName)) { $moduleName = 'Import'; } $smarty->display(vtlib_getModuleTemplate($moduleName, $templateName)); } function fetch($templateName, $moduleName='') { $smarty = $this->viewController(); if(empty($moduleName)) { $moduleName = 'Import'; } return $smarty->fetch(vtlib_getModuleTemplate($moduleName, $templateName)); } }