Skip to content

Commit 51ce7fb

Browse files
committed
init request/response/rest to suppress PHP warnings
1 parent ac4ba81 commit 51ce7fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

application/libraries/REST_Controller.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ class REST_Controller extends CI_Controller {
3030
public function __construct()
3131
{
3232
parent::__construct();
33+
34+
// init objects
35+
$this->request = new stdClass();
36+
$this->response = new stdClass();
37+
$this->rest = new stdClass();
3338

3439
// Lets grab the config and get ready to party
3540
$this->load->config('rest');

0 commit comments

Comments
 (0)