Class.php 657 Bytes
<?php
use Action\AbstractAction;
use Category\ClassModel;
use Plugin\Helpers;

/**
 * 品类
 */
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);
    }
}