Err: "/www/wwwroot/dns.tvsss.cn/protected/view/default/index.html" is not exists!
- /www/wwwroot/dns.tvsss.cn/protected/lib/Speed.php on line 841
836.
* @return string
837.
*/
838.
public function compile($tempalte_name) {
839.
$file = $this->template_dir . DS . $tempalte_name;
840.
if (!file_exists($file)) {
841.
842.
err('Err: "' . $file . '" is not exists!');
}
843.
844.
if (!is_writable($this->compile_dir) || !is_readable($this->compile_dir)) {
845.
err('Err: Directory "' . $this->compile_dir . '" is not writable or readable');
846.
}
- /www/wwwroot/dns.tvsss.cn/protected/lib/Speed.php on line 802
797.
*
798.
* @param string $tempalte_name 模板名
799.
* @return string
800.
*/
801.
public function render($tempalte_name) {
802.
803.
$complied_file = $this->compile($tempalte_name);
804.
@ob_start();
805.
extract($this->template_vals, EXTR_SKIP);
806.
$_view_obj = &$this;
807.
include $complied_file;
- /www/wwwroot/dns.tvsss.cn/protected/lib/Speed.php on line 420
415.
$this->_auto_display = false;
416.
417.
if ($return) {
418.
return $this->_v->render($tpl_name);
419.
} else {
420.
421.
echo $this->_v->render($tpl_name);
}
422.
}
423.
}
424.
425.
/**
- /www/wwwroot/dns.tvsss.cn/protected/controller/MainController.php on line 40
35.
if (!file_exists($templateFile)) {
36.
exit($templateFile.' -> 无首页模板,请前往后台进行首页模板设置');
37.
}
38.
39.
$this->assets = '/Template/Index/' . $template . '/assets/';
40.
41.
$this->display($template . '/index.html');
}
42.
}
- /www/wwwroot/dns.tvsss.cn/protected/lib/Speed.php on line 210
205.
206.
// 执行控制器
207.
$controller_obj = new $controller_name();
208.
209.
try {
210.
211.
$controller_obj->$action_name();
} catch (\Throwable $e) {
212.
if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest') {
213.
header('Content-Type: application/json');
214.
echo json_encode(array('code' => -1, 'msg' => '系统异常: ' . $e->getMessage() . ' 在 ' . basename($e->getFile()) . ':' . $e->getLine()), JSON_UNESCAPED_UNICODE);
215.
} else {
- /www/wwwroot/dns.tvsss.cn/index.php on line 108
103.
}
104.
105.
define('APP_DIR', realpath('./'));
106.
require(APP_DIR.'/protected/Version.php');
107.
require(APP_DIR.'/protected/lib/Common.php');
108.
109.
require(APP_DIR.'/protected/lib/Speed.php');
?>