assign('error',$msg); $tpshop_config = array(); $tp_config = M('config')->cache(true,TPSHOP_CACHE_TIME)->select(); foreach($tp_config as $k => $v) { if($v['name'] == 'hot_keywords'){ $tpshop_config['hot_keywords'] = explode('|', $v['value']); } $tpshop_config[$v['inc_type'].'_'.$v['name']] = $v['value']; } $this->assign('goods_category_tree', get_goods_category_tree()); $brand_list = M('brand')->cache(true,TPSHOP_CACHE_TIME)->field('id,parent_cat_id,logo,is_hot')->where("parent_cat_id>0")->select(); $this->assign('brand_list', $brand_list); $this->assign('tpshop_config', $tpshop_config); return $this->fetch('Public/tp404'); } }