Class.php
637 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->setTitle('商品分类');
$this->_view->display('index', $data);
}
}