aboutsummaryrefslogtreecommitdiffstats
path: root/public/install/controller/event
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-08-18 21:14:58 -0500
committerJesús <heckyel@hyperbola.info>2019-08-18 21:14:58 -0500
commit2eed7b082f83630301e51f57ca8394de228a8605 (patch)
tree1d19962d22d30f99317d9276e4bae7744fc93fc2 /public/install/controller/event
downloadlibrecart-2eed7b082f83630301e51f57ca8394de228a8605.tar.lz
librecart-2eed7b082f83630301e51f57ca8394de228a8605.tar.xz
librecart-2eed7b082f83630301e51f57ca8394de228a8605.zip
first commit
Diffstat (limited to 'public/install/controller/event')
-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');
+ }
+ }
+}