{"action":"created","issue":{"url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/630","repository_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver","labels_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/630/labels{/name}","comments_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/630/comments","events_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/630/events","html_url":"https://github.com/chriskacerguis/codeigniter-restserver/issues/630","id":143856169,"number":630,"title":"$this->response causes error","user":{"login":"Broekhuis","id":18105401,"avatar_url":"https://avatars.githubusercontent.com/u/18105401?v=3","gravatar_id":"","url":"https://api.github.com/users/Broekhuis","html_url":"https://github.com/Broekhuis","followers_url":"https://api.github.com/users/Broekhuis/followers","following_url":"https://api.github.com/users/Broekhuis/following{/other_user}","gists_url":"https://api.github.com/users/Broekhuis/gists{/gist_id}","starred_url":"https://api.github.com/users/Broekhuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Broekhuis/subscriptions","organizations_url":"https://api.github.com/users/Broekhuis/orgs","repos_url":"https://api.github.com/users/Broekhuis/repos","events_url":"https://api.github.com/users/Broekhuis/events{/privacy}","received_events_url":"https://api.github.com/users/Broekhuis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-27T22:24:06Z","updated_at":"2016-04-03T00:48:29Z","closed_at":null,"body":"I hope someone can help me with this. I have:\r\n \r\n        $news = $this->news_model->get_news( $this->get('id') );\r\n\r\nThis succesfully queries my database and returns a news-item into the array $news  ( I checked that with print_r($news) )\r\n\r\nHowever when I try:\r\n\r\n  $this->response($news, REST_Controller::HTTP_OK);\r\n\r\nI keep getting this error:\r\n\r\n  ==============================\r\n  A PHP Error was encountered\r\n  Severity: Error\r\n  Message: Call to a member function factory() on null\r\n  Filename: libraries/REST_Controller.php\r\n  Line Number: 766\r\n  Backtrace:\r\n  ==============================\r\n\r\nI hope someone can help..\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/comments/204838308","html_url":"https://github.com/chriskacerguis/codeigniter-restserver/issues/630#issuecomment-204838308","issue_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/630","id":204838308,"user":{"login":"softwarespot","id":5333690,"avatar_url":"https://avatars.githubusercontent.com/u/5333690?v=3","gravatar_id":"","url":"https://api.github.com/users/softwarespot","html_url":"https://github.com/softwarespot","followers_url":"https://api.github.com/users/softwarespot/followers","following_url":"https://api.github.com/users/softwarespot/following{/other_user}","gists_url":"https://api.github.com/users/softwarespot/gists{/gist_id}","starred_url":"https://api.github.com/users/softwarespot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softwarespot/subscriptions","organizations_url":"https://api.github.com/users/softwarespot/orgs","repos_url":"https://api.github.com/users/softwarespot/repos","events_url":"https://api.github.com/users/softwarespot/events{/privacy}","received_events_url":"https://api.github.com/users/softwarespot/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T00:48:29Z","updated_at":"2016-04-03T00:48:29Z","body":"Please close the issue."}}