public function preExecute() { parent::preExecute(); $action = $this->getRequest()->getParameter('action'); if ('search' == $action || 'post' == $action) { $this->forward400If(!$this->getRequest()->getParameter('community_event_id'), 'community_event_id parameter is not specified.'); } $this->member = $this->getUser()->getMember(); $this->memberId = $this->member->getId(); }
public function preExecute() { parent::preExecute(); $action = $this->getRequest()->getParameter('action'); if ('join' == $action || 'memberList' == $action) { $this->forward400If(!$this->getRequest()->getParameter('id'), 'event id is not specified'); $this->event = Doctrine::getTable('CommunityEvent')->findOneById($this->getRequest()->getParameter('id')); $this->forward400If(!$this->event, 'requested event does not exist'); } $this->member = $this->getUser()->getMember(); $this->memberId = $this->member->getId(); }
public function preExecute() { parent::preExecute(); $this->member = $this->getUser()->getMember(); $this->memberId = $this->member->getId(); }