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.      }
33.              $product_cate_model = new product_cate_model();        
34.              $this->cate $product_cate_model->find(array('cate_id'=>$product['cate_id']));
35.          
36.              //if(!empty($product['link'])) jump($product['link']);
37.              $product['tag'] = explode(",",$product['meta_keywords']);
38.              $this->tags_id vcache::instance()->tag_model('tags_id');
39.              
40.              /*$ks = vcache::instance()->key_model('key_list');            
41.              foreach($ks as $k=>$v){
42.                  $product['content'] = preg_replace('/'.$v['title'].'/i','<a href="'.$v['url'].'" target="_blank" >'.$v['title'].'</a>',$product['content'],1);
43.              }*/
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');