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; }
public function actionRewardView($id) { $inviteInfo = AppbymeActivityInviteModel::getActivityInviteById($id); $this->renderPartial('rewardview', array('inviteInfo' => $inviteInfo)); }