Class.php
503 Bytes
<?php
use Action\AbstractAction;
use LibModels\Wap\Category\ClassData;
/**
* 品牌
*/
class ClassController extends AbstractAction
{
public function indexAction()
{
$brandsData = ClassData::getClassesData();
$classes = array();
if($brandsData['code'] == 200)
{
$classes = $brandsData['data'];
}
echo '<pre>';
var_dump($classes);exit;
$this->_view->assign('title', 'YOHO!有货');
$this->_view->display('class', compact('classes'));
}
}