Skip to content

Instantly share code, notes, and snippets.

@cornernote
Created February 4, 2014 12:34
Show Gist options
  • Select an option

  • Save cornernote/8802830 to your computer and use it in GitHub Desktop.

Select an option

Save cornernote/8802830 to your computer and use it in GitHub Desktop.
<?php
if(isset($_GET['event'])) {
// Does the model have this attribute? If not raise an error
$this->event = $_GET['event'];
$this->id = $_GET['id'];
$this->relayer = $_GET['relayer'];
$this->relayer_phone = $_GET['relayer_phone'];
$this->phone = $_GET['phone'];
$this->text = $_GET['text'];
$this->time = $_GET['time'];
$this->postcontent = $_GET;
var_dump($this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment