Consult.php 1.03 KB
<?php

use Action\WebAction;
use WebPlugin\Helpers;
use Home\UserModel;
use Home\ConsultModel;

/**
 * 个人中心
 */
class consultController extends WebAction
{
    /**
     * 我的咨询
     */
    public function indexAction()
    {
        $uid = $this->auditJumpLogin();
        $page = $this->get('page', 1);
        $consult = ConsultModel::ConsultList($uid, $page);
        //面包屑-左侧导航
        $path = UserModel::getCenterCrumb('我的咨询');
        $leftNav = UserModel::getCenterLeftNav('我的咨询', $uid);

        //头部导航
        $channel = Helpers::getChannelNameByCookie();
        $this->setWebNavHeader($channel);
        $data = array(
            'path' => $path,
            'userThumb' => UserModel::getUserHeadImg($uid),
            'homeNav' => $leftNav,
            'consults' => $consult['consults'],
            'pager' => $consult['pager'],

        );

        $this->_view->display('consult', array('homeConsultPage' => false, 'consult' => $data));
    }
}