php $id = $this->Toolbox->findByIdByUuid($this->Event, $id); $this->Event->id = $id; if (!$this->Event->exists()) { php $events = $this->Event->fetchEvent($this->Auth->user(), array('eventid' => $id)); if (empty($events)) { throw new NotFoundException(__('Invalid event')); } php // Users with a GnuPG key will get the mail encrypted, other users will get the mail unencrypted public function contact($id = null) php // User didn't see the contact form yet. Present it to him. if (empty($this->data)) {