aboutsummaryrefslogtreecommitdiffstats
path: root/public/install/controller/event/theme.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/install/controller/event/theme.php')
-rw-r--r--public/install/controller/event/theme.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/public/install/controller/event/theme.php b/public/install/controller/event/theme.php
new file mode 100644
index 0000000..62e31ac
--- /dev/null
+++ b/public/install/controller/event/theme.php
@@ -0,0 +1,10 @@
+<?php
+class ControllerEventTheme extends Controller {
+ public function index(&$view, &$data) {
+ if (is_file(DIR_TEMPLATE . $view . '.tpl')) {
+ $this->config->set('template_engine', 'php');
+ } elseif (is_file(DIR_TEMPLATE . $view . '.twig')) {
+ $this->config->set('template_engine', 'twig');
+ }
+ }
+}