WARNING: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/test.com/protected/tmp/d2056a7f2abd760414a7cf4d46b82058.1758168471.detail_article.html.php on line 63

519.      $msg "ERROR";
520.      if($errno == E_WARNING)$msg "WARNING";
521.      if($errno == E_NOTICE)$msg "NOTICE";
522.      if($errno == E_STRICT)$msg "STRICT";
523.      if($errno == 8192)$msg "DEPRECATED";
524.      err("$msg$errstr in $errfile on line $errline");
525.  }
526.  function err($msg){
527.      $msg htmlspecialchars($msg);
528.      $traces debug_backtrace();
529.      if(!empty($GLOBALS['err_handler'])){
58.                  <div class="prose max-w-none mb-8">
59.                    <?php echo $record['content']; ?>
60.                  </div>
61.                  
62.                  <div class="flex flex-wrap gap-2 mb-8">
63.                    <?php if(!empty($record['tags'])){ $_foreach_tag_counter 0$_foreach_tag_total count($record['tags']);?><?php foreach( $record['tags'] as $tag ) : ?><?php $_foreach_tag_index $_foreach_tag_counter;$_foreach_tag_iteration $_foreach_tag_counter 1;$_foreach_tag_first = ($_foreach_tag_counter == 0);$_foreach_tag_last = ($_foreach_tag_counter == $_foreach_tag_total 1);$_foreach_tag_counter++;?>
64.                    <span class="bg-gray-100 text-gray-700 px-3 py-1 rounded-full text-sm"><?php echo htmlspecialchars($tagENT_QUOTES"UTF-8"); ?></span>
65.                    <?php endforeach; }?>
66.                  </div>
67.                  
68.                  <div class="flex flex-wrap gap-3 mb-8">
256.          </div>
257.        </div>
258.      </div>
259.    </header>
260. 
261.    <?php include $_view_obj->compile($__template_file); ?>
262.    
263.    <!-- 底部 -->
264.    <footer class="bg-secondary text-white pt-12 pb-6">
265.      <div class="container mx-auto px-4 md:px-6">
266.        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-8 mb-10">
396.          $complied_file $this->compile($tempalte_name);
397.          
398.          @ob_start();
399.          extract($this->template_valsEXTR_SKIP);
400.          $_view_obj = & $this;
401.          include $complied_file;
402.          
403.          return ob_get_clean();
404.      
405.      
406.      public function assign($mixed$val ''){
208.          $this->_auto_display false;
209.          
210.          if($return){
211.              return $this->_v->render($tpl_name);
212.          }else{
213.              echo $this->_v->render($tpl_name);
214.          }
215.      }
216.  }
217. 
218.  class Model{
2875.              
2876.              $this->display("pc/detail_game.html");
2877.          }else if($record["content_type"] == "article"){
2878.              // 获取相关推荐数据
2879.              $this->related_articles $this->get_related_data("article"$record["category_name"], 5$record["id"]);
2880.              $this->display("pc/detail_article.html");
2881.          }else if($record["content_type"] == "gzh"){
2882.              // 获取相关推荐数据
2883.              $this->related_officials $this->get_related_data("gzh"$record["category_name"], 5$record["id"]);
2884.              $this->display("pc/detail_official.html");
2885.          }else if($record["content_type"] == "xcx"){
91.      exit;
92.  };
93.  if(!method_exists($controller_name$action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
94. 
95.  $controller_obj = new $controller_name();
96.  $controller_obj->$action_name();
97. 
98.  if($controller_obj->_auto_display){
99.      $auto_tpl_name = (empty($__module) ? '' $__module.DS).$__controller.'_'.$__action.'.html';
100.      if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
101.  }
3.  header('Access-Control-Allow-Origin: *');
4.  header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
5.  header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With');
6.  define('APP_DIR'realpath('./'));
7.  define("APP_PATH",dirname(__FILE__));
8.  require(APP_DIR.'/protected/lib/speed.php');