Err: Directory "/www/wwwroot/www.zy-tj.com/protected/tmp" is not writable or readable

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.              err('Err: Directory "' $this->compile_dir '" is not writable or readable');
508.          }
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;
469.          $this->template_dir    $template_dir;
470.          $this->compile_dir     $compile_dir;
471.      }
472. 
473.      public function render($tempalte_name) {
474.          $complied_file $this->compile($tempalte_name);
475. 
476.          @ob_start();
477.          extract($this->template_valsEXTR_SKIP);
478.          $_view_obj = &$this;
479.          include $complied_file;
239.          $this->_auto_display false;
240. 
241.          if ($return) {
242.              return $this->_v->render($tpl_name);
243.          } else {
244.              echo $this->_v->render($tpl_name);
245.          }
246.      }
247.  }
248. 
249.  class Model {
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.          $controller_obj->display($auto_tpl_name);
112.      }
113. 
114.  }
115. 
116.  function url($c 'main'$a 'index'$param = array()) {
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');