Focus.php 571 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!有货');
    	$this->_view->display('class', compact('focus'));
    }
}