Consult.php
1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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));
}
}