Class.php
657 Bytes
<?php
use Action\AbstractAction;
use LibModels\Wap\Category\ClassData;
use Plugin\DataProcess\ClassProcess;
/**
* 品牌
*/
class ClassController extends AbstractAction
{
public function indexAction()
{
$brandsData = ClassData::getClassesData();
$classes = array();
if($brandsData['code'] == 200)
{
$classes = ClassProcess::getClassData($brandsData['data']);
}
$data = array(
"searchUrl" => "",
"class" => $classes
);
$this->_view->assign('title', 'YOHO!有货');
$this->_view->display('index', array('categoryPage' => true, 'category' => $data));
}
}