File "theme.php"
Full path: /home/cakedeco/retaildirectonline.co.uk/admin/controller/event/theme.php
File
size: 469 B (469 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
class ControllerEventTheme extends Controller {
public function index(&$route, &$args) {
// This is only here for compatibility with old templates
if (substr($route, -3) == 'tpl') {
$view = substr($route, 0, -3);
}
if (is_file(DIR_TEMPLATE . $route . '.twig')) {
$this->config->set('template_engine', 'twig');
} elseif (is_file(DIR_TEMPLATE . $route . '.tpl')) {
$this->config->set('template_engine', 'template');
}
}
}