Class.php
641 Bytes
<?php
use Action\AbstractAction;
use Category\ClassModel;
/**
* 品类
*/
class ClassController extends AbstractAction
{
public function indexAction()
{
$classes = ClassModel::getClassData();
$data = array(
'categoryPage' => true,
'pageHeader' => array (
'navBack' => true,
'navHome' => '/',
'navTitle' => '商品分类'
),
'category' => array(
"class" => $classes
)
);
$this->_view->assign('title', 'YOHO!有货');
$this->_view->display('index', $data);
}
}