Authored by Rock Zhang

修复品类页面的bug

... ... @@ -66,7 +66,7 @@ class ClassModel
$subitem = array();
$subitem['name'] = $value['category_name'];
$subitem['id'] = $value['relation_parameter']['sort'];
$subitem['url'] = $value['category_id'];
$subitem['url'] = '/product/list/class?sort='.$value['relation_parameter']['sort'];
$item['sub'][] = $subitem;
}
... ...
... ... @@ -12,11 +12,18 @@ class ClassController extends AbstractAction
$classes = ClassModel::getClassData();
$data = array(
"searchUrl" => "",
"class" => $classes
'categoryPage' => true,
'pageHeader' => array (
'navBack' => true,
'navHome' => '/',
'navTitle' => '商品分类'
),
'category' => array(
"class" => $classes
)
);
$this->_view->assign('title', 'YOHO!有货');
$this->_view->display('index', array('categoryPage' => true, 'category' => $data));
$this->_view->display('index', $data);
}
}
\ No newline at end of file
... ...