WARNING: Invalid argument supplied for foreach() in /www/wwwroot/sqzhongming.cn/protected/model/tag_model.php on line 20

643.          case E_NOTICE$msg "NOTICE"; break;
644.          case E_STRICT$msg "STRICT"; break;
645.          case 8192$msg "DEPRECATED"; break;
646.          default : $msg "Unknown Error Type";
647.      }
648.      err("$msg$errstr in $errfile on line $errline");
649.  }
650. 
651.  function err($msg)
652.  {
653.      $traces debug_backtrace();
15.      }
16.      public function tags_id()
17.      {
18.          $tag_id = array();
19.          $tag $this->find_all();
20.          foreach($tag as $k=>$v){
21.              $tag_id[$v['tag_name']] = $v['id'];
22.          }
23.          return $tag_id;
24.           
25.      }
35.          if($args[2] == -1) return $this->delete($key);
36.          $cache $this->get($key);
37.          if(FALSE === $cache)
38.          {
39.              $obj = new $outer();
40.              $data call_user_func_array(array($obj$args[0]), $args[1]);
41.              $this->set($key$data$args[2]);
42.              return $data;
43.          }
44.          return $cache;
45.      }
37.                  if($v['cate_id']==$news['cate_id']) $this->cate $v;
38.              }
39.          
40.              if(!empty($news['link'])) jump($news['link']);
41.              $news['tag'] = explode(",",$news['meta_keywords']);
42.              $this->tags_id vcache::instance()->tag_model('tags_id');
43.              /*添加关键词链接*/
44.              //$key_model = new key_model();
45.              
46.              /*$ks = vcache::instance()->key_model('key_list');            
47.              foreach($ks as $k=>$v){                 
172.  $action_name 'action_'.$__action;
173.  if(!class_exists($controller_nametrue)) {header('location:/404.html');exit();}
174.  $controller_obj = new $controller_name();
175.  if(!method_exists($controller_obj$action_name)) err("Err: Method '$action_name' of '$controller_name' is not exists!");
176. 
177.  $controller_obj->$action_name();
178. 
179.  function url($c 'main'$a 'index'$param = array())
180.  {
181.      if(is_array($c))
182.      {
1.  <?php
2.  define('APP_DIR'realpath('./'));
3.  defined('DS') or define('DS'DIRECTORY_SEPARATOR);
4.  define('INCL_DIR'APP_DIR.DS.'protected'.DS.'include');
5.  require(INCL_DIR.DS.'core.php');