Esempio n. 1
0
 public static function getInviteConfig($activityId)
 {
     $key = CacheUtils::getActivityInviteKey(array('invite', $activityId));
     $config = Yii::app()->cache->get($key);
     if ($config === false) {
         $config = AppbymeActivityInviteModel::getActivityInviteById($activityId);
         Yii::app()->cache->set($key, $config);
     }
     return $config;
 }
Esempio n. 2
0
 public function actionRewardView($id)
 {
     $inviteInfo = AppbymeActivityInviteModel::getActivityInviteById($id);
     $this->renderPartial('rewardview', array('inviteInfo' => $inviteInfo));
 }