/** * display - display template from folder template * * @access public * @param $template * @return unknown_type */ public function display($template) { $this->template = $template; //frontcontroller splits the name (actionname.modulename) $action = frontcontroller::getActionName($template); $module = frontcontroller::getModuleName($template); if (defined('MOBILE') === true) { $strTemplate = './includes/modules/' . $module . '/templates/mobile/' . $action . '.tpl.php'; } else { $strTemplate = './includes/modules/' . $module . '/templates/' . $action . '.tpl.php'; } if (!file_exists($strTemplate) || !is_readable($strTemplate)) { echo '<p>Template kann nicht gefunden werden</p>'; } else { //get language-File for labels $language = new language(); $language->setModule($module); $lang = $language->readIni(); include $strTemplate; } return; }