Authored by yangyang

增加了会员等级控制器

<?php
use Action\AbstractAction;
use home\GradeModel;
use Plugin\Helpers;
/**
... ... @@ -131,5 +132,29 @@ class HomeController extends AbstractAction
}
}
/**
* 会员等级展示页
*/
public function gradeAction(){
$gender = Helpers::getGenderByCookie();
$channel = Helpers::getChannelByCookie();
$uid = $this -> getUid();
$uid = '10267443';
$data = GradeModel::getGrade($gender,$channel,$uid);
//print_r($data);
//$this -> _view -> display('index',$data);
}
/*
*会员特权查看页
*/
public function preferentialAction(){
$channel = Helpers::getChannelByCookie();
$uid = $this -> getUid();
$data = GradeModel::getPreferential($channel,$uid);
print_r($data);
//$this -> _view -> display('index',$data);
}
}
... ...