fix bug 2016/01/25

修复引起前台个人中心显示异常的BUG
This commit is contained in:
Martin Zhou
2016-01-25 10:53:12 +08:00
parent 723a65923c
commit 4a3ce9d656
7 changed files with 28 additions and 1 deletions

View File

@@ -13,7 +13,10 @@ class InfoController extends BaseController{
public function index(){
$id = session('userId');
$tmodel= M('setting');
$title = $tmodel->where('id=1')->select();
$info = M('info')->where('user_id='.$id)->select();
$this->assign('title', $title);
$this->assign('info',$info);
$this->display();
}