WARNING: Invalid argument supplied for foreach() in /www/wwwroot/kedigroup.com.cn/protected/model/tag_model.php on line 20
- /www/wwwroot/kedigroup.com.cn/protected/include/core.php on line 565
560.
case E_NOTICE: $msg = "NOTICE"; break;
561.
case E_STRICT: $msg = "STRICT"; break;
562.
case 8192: $msg = "DEPRECATED"; break;
563.
default : $msg = "Unknown Error Type";
564.
}
565.
566.
err("$msg: $errstr in $errfile on line $errline");
}
567.
568.
function err($msg)
569.
{
570.
$traces = debug_backtrace();
- /www/wwwroot/kedigroup.com.cn/protected/model/tag_model.php on line 20
15.
}
16.
public function tags_id()
17.
{
18.
$tag_id = array();
19.
$tag = $this->find_all();
20.
21.
foreach($tag as $k=>$v){
$tag_id[$v['tag_name']] = $v['id'];
22.
}
23.
return $tag_id;
24.
25.
}
- /www/wwwroot/kedigroup.com.cn/protected/lib/vcache.php on line 40
35.
if($args[2] == -1) return $this->delete($key);
36.
$cache = $this->get($key);
37.
if(FALSE === $cache)
38.
{
39.
$obj = new $outer();
40.
41.
$data = call_user_func_array(array($obj, $args[0]), $args[1]);
$this->set($key, $data, $args[2]);
42.
return $data;
43.
}
44.
return $cache;
45.
}
- /www/wwwroot/kedigroup.com.cn/protected/controller/tag_controller.php on line 9
4.
public function action_index()
5.
{
6.
$id = (int)request('id', 0);
7.
$tag_model = new tag_model();
8.
$this->tag_list = vcache::instance()->tag_model('tags');
9.
10.
$this->tag_id = vcache::instance()->tag_model('tags_id');
$title = '标签';
11.
if(!empty($id)){
12.
if($this->tag = $tag_model->find(array('id'=>$id))){
13.
$title = $this->tag['tag_name'];
14.
if(!empty($this->tag['aid'])){
- /www/wwwroot/kedigroup.com.cn/protected/include/core.php on line 94
89.
$action_name = 'action_'.$__action;
90.
if(!class_exists($controller_name, true)) {header('location:/404.html');exit();}
91.
$controller_obj = new $controller_name();
92.
if(!method_exists($controller_obj, $action_name)) err("Err: Method '$action_name' of '$controller_name' is not exists!");
93.
94.
95.
$controller_obj->$action_name();
96.
function url($c = 'main', $a = 'index', $param = array())
97.
{
98.
if(is_array($c))
99.
{
- /www/wwwroot/kedigroup.com.cn/index.php on line 5
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');