Focus.php 622 Bytes
<?php

use Action\AbstractAction;
use LibModels\Wap\Category\FocusData;

/**
 * 品牌
 */
class FocusController extends AbstractAction
{

    public function indexAction()
    {
        // 获取关注数据
        $gender = $this->get('gender', '1,3');
        $focusData = FocusData::getFocusData(0, $gender);

        $focus = array();
        if ($focusData['code'] == 200) {
            $focus = $focusData['data'];
        }

        echo '<pre>';
        var_dump($focus);
        exit;

        $this->_view->assign('title', 'YOHO!BUY 有货');
        $this->_view->display('class', compact('focus'));
    }

}