billy boys famous event has been hacked by Jack Black gggg

(1 RSVPs)

Login to RSVP

Artist SeƱor Fantasma
Title billy boys famous event has been hacked by Jack Black gggg
Slug billy-boy-bong-o-4sBnfoXnY8UGm6q1
Id 1
Event Date 2/2/18
Event Start 05:55:05
Event Finish 21:09:09
Body

public function add()
{
$event = $this->Events->newEmptyEntity();
$this->Authorization->authorize($event, 'add'); // for now anyone can add events
if ($this->request->is('post')) {
$event = $this->Events->patchEntity($event, $this->request->getData());

// Set the user_id from the current user.
// https://book.cakephp.org/4/en/tutorials-and-examples/cms/authorization.html#fixing-the-add-edit-actions
$event->user_id = $this->request->getAttribute('identity')->getIdentifier();

if ($this->Events->save($event)) {
$this->Flash->success(__('The event has been saved.'));

return $this->redirect(['action' => 'index']);
}
$this->Flash->error(__('The event could not be saved. Please, try again.'));
}
$users = $this->Events->Users->find('list', ['limit' => 200])->all();
$tags = $this->Events->Tags->find('list', ['limit' => 200])->all();
$this->set(compact('event', 'users', 'tags'));
}