22
22
$this->data['Sponsor']['event_id'] = $this->Session->read('event_id');
23
23
$this->Sponsor->create();
24
24
if ($this->Sponsor->save($this->data)) {
25
$this->Session->setFlash(__('The sponsor has been saved', true),'default', array('class'=>'success-message'));
26
26
$this->redirect(array('action' => 'index'));
28
28
$this->Session->setFlash(__('The sponsor could not be saved. Please, try again.', true));