Skip to content

Commit

Permalink
Merge pull request #105 from Givemeup/master
Browse files Browse the repository at this point in the history
Declares an instance of stdClass
  • Loading branch information
Phil Sturgeon committed Mar 22, 2012
2 parents 56346ad + 6c9b492 commit ddf9c14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/libraries/REST_Controller.php
Expand Up @@ -45,6 +45,7 @@ public function __construct()
$this->load->config('rest');

// How is this request being made? POST, DELETE, GET, PUT?
$this->request = new stdClass();
$this->request->method = $this->_detect_method();

// Set up our GET variables
Expand Down Expand Up @@ -110,6 +111,7 @@ public function __construct()
$this->_args = array_merge($this->_get_args, $this->_put_args, $this->_post_args, $this->_delete_args);

// Which format should the data be returned in?
$this->response = new stdClass();
$this->response->format = $this->_detect_output_format();

// Which language should the data be returned in?
Expand Down

0 comments on commit ddf9c14

Please sign in to comment.