Err: Directory "/www/wwwroot/www.zy-tj.com/protected/tmp" is not writable or readable
- /www/wwwroot/www.zy-tj.com/protected/lib/speed.php on line 507
502.
if (!file_exists($file)) {
503.
err('Err: "' . $file . '" is not exists!');
504.
}
505.
506.
if (!is_writable($this->compile_dir) || !is_readable($this->compile_dir)) {
507.
508.
err('Err: Directory "' . $this->compile_dir . '" is not writable or readable');
}
509.
510.
$complied_file = $this->compile_dir . DS . md5(realpath($file)) . '.' . filemtime($file) . '.' . basename($tempalte_name) . '.php';
511.
if (file_exists($complied_file)) {
512.
return $complied_file;
- /www/wwwroot/www.zy-tj.com/protected/lib/speed.php on line 474
469.
$this->template_dir = $template_dir;
470.
$this->compile_dir = $compile_dir;
471.
}
472.
473.
public function render($tempalte_name) {
474.
475.
$complied_file = $this->compile($tempalte_name);
476.
@ob_start();
477.
extract($this->template_vals, EXTR_SKIP);
478.
$_view_obj = &$this;
479.
include $complied_file;
- /www/wwwroot/www.zy-tj.com/protected/lib/speed.php on line 244
239.
$this->_auto_display = false;
240.
241.
if ($return) {
242.
return $this->_v->render($tpl_name);
243.
} else {
244.
245.
echo $this->_v->render($tpl_name);
}
246.
}
247.
}
248.
249.
class Model {
- /www/wwwroot/www.zy-tj.com/protected/lib/speed.php on line 111
106.
$controller_obj->$action_name();
107.
108.
if ($controller_obj->_auto_display) {
109.
$auto_tpl_name = (empty($__module) ? '' : $__module . DS) . $__controller . '_' . $__action . '.html';
110.
if (file_exists(APP_DIR . DS . 'protected' . DS . 'view' . DS . $auto_tpl_name)) {
111.
112.
$controller_obj->display($auto_tpl_name);
}
113.
114.
}
115.
116.
function url($c = 'main', $a = 'index', $param = array()) {
- /www/wwwroot/www.zy-tj.com/index.php on line 13
8.
// header("Content-type:application/json");
9.
mb_internal_encoding('utf-8');
10.
define('APP_DIR', realpath('./'));
11.
12.
require(APP_DIR.'/protected/lib/comsposerData/vendor/autoload.php');
13.
require(APP_DIR.'/protected/lib/speed.php');