From: cajus Date: Thu, 15 Nov 2007 13:26:48 +0000 (+0000) Subject: Added templates directory X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=89a7f3582bfa152e4d62db8134254417e2c8d5e0;p=gosa.git Added templates directory git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7802 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_ViewportController.inc b/include/class_ViewportController.inc index 9eeda233a..32a2a9978 100644 --- a/include/class_ViewportController.inc +++ b/include/class_ViewportController.inc @@ -27,10 +27,11 @@ class ViewportControllerException extends Exception { */ class ViewportController { - private $theme= 'default'; + private $theme; private $smarty; private $language= ''; private $timezone; + private $mainTemplate= 'main'; /*! \brief ViewportController constructor @@ -67,6 +68,9 @@ class ViewportController { throw new ViewportControllerException(sprintf(_("Directory '%s' specified as compile-directory is not accessible!"), $this->Smarty->compile_dir)); } + /* Get more display settings */ + $this->theme= $config->getValue('theme', 'default'); + /* Check for old files in compile directory */ $this->cleanSmartyCompileDir(); } @@ -107,8 +111,14 @@ class ViewportController { } + public function getTemplatePath($name) { + return "horst"; + } + + public function render() { - echo "Render called\n"; + #Header generator from template + echo $this->getTemplatePath('main'); } }