admin/controller/event/theme.php
(完整代码) 454B<?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');
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
