|
|
<?php
|
|
|
use Action\AbstractAction;
|
|
|
use LibModels\Wap\Category\ClassData;
|
|
|
// use LibModels\Wap\Category\ClassData;
|
|
|
|
|
|
/**
|
|
|
* 品牌
|
...
|
...
|
@@ -9,18 +9,89 @@ class ClassController extends AbstractAction |
|
|
{
|
|
|
public function indexAction()
|
|
|
{
|
|
|
$brandsData = ClassData::getClassesData();
|
|
|
// $brandsData = ClassData::getClassesData();
|
|
|
|
|
|
$classes = array();
|
|
|
if($brandsData['code'] == 200)
|
|
|
{
|
|
|
$classes = $brandsData['data'];
|
|
|
}
|
|
|
// $classes = array();
|
|
|
// if($brandsData['code'] == 200)
|
|
|
// {
|
|
|
// $classes = $brandsData['data'];
|
|
|
// }
|
|
|
|
|
|
echo '<pre>';
|
|
|
var_dump($classes);exit;
|
|
|
// echo '<pre>';
|
|
|
// var_dump($classes);exit;
|
|
|
|
|
|
$this->_view->assign('title', 'YOHO!有货');
|
|
|
$this->_view->display('class', compact('classes'));
|
|
|
// $this->_view->assign('title', 'YOHO!有货');
|
|
|
// $this->_view->display('class', compact('classes'));
|
|
|
$data = array(
|
|
|
"searchUrl" => "",
|
|
|
"class" => array(
|
|
|
array(
|
|
|
"name" => "Boy",
|
|
|
"focus" => true,
|
|
|
"ca" => array(
|
|
|
array(
|
|
|
"name" => "上衣",
|
|
|
"sub" => array(
|
|
|
array(
|
|
|
"name" => "全部上衣",
|
|
|
"url" => ""
|
|
|
),
|
|
|
array(
|
|
|
"name" => "卫衣",
|
|
|
"url" => ""
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
array(
|
|
|
"name" => "裤装",
|
|
|
"sub" => array(
|
|
|
array(
|
|
|
"name" => "全部裤装",
|
|
|
"url" => ""
|
|
|
),
|
|
|
array(
|
|
|
"name" => "牛仔裤",
|
|
|
"url" => ""
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
array(
|
|
|
"name" => "Girl",
|
|
|
"ca" => array(
|
|
|
array(
|
|
|
"name" => "裙装",
|
|
|
"sub" => array(
|
|
|
array(
|
|
|
"name" => "全部裙装",
|
|
|
"url" => ""
|
|
|
),
|
|
|
array(
|
|
|
"name" => "短裙",
|
|
|
"url" => ""
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
array(
|
|
|
"name" => "鞋靴",
|
|
|
"sub" => array(
|
|
|
array(
|
|
|
"name" => "全部鞋靴",
|
|
|
"url" => ""
|
|
|
),
|
|
|
array(
|
|
|
"name" => "休闲鞋",
|
|
|
"url" => ""
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
);
|
|
|
|
|
|
$this->_view->assign('title', 'YOHO!有货');
|
|
|
$this->_view->display('index', array('categoryPage' => true, 'category' => $data));
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|