22 parent::__construct($context, $params);
23 $this->output = new \Tools\Output($context);
33 $themeDir = $this->context->router->themesPath.$themeName.
'/';
34 if (!is_dir($themeDir))
35 throw new \Exception\Error404();
36 $this->theme = $themeDir;
57 $themedir = opendir($this->theme);
59 while ($dir = readdir($themedir))
61 if ($dir !== $viewFile || is_dir($this->theme.
'/'.$dir))
66 if ($exists ===
false)
68 $this->output->renderFile($this->theme . $exists);
72 public abstract function run();
78 throw new \Exception(
"Cannot access attribute {$key}");
static getConfig($lang=null, $key=null, $defaultValue=null)