{"action":"created","issue":{"url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/390","labels_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/390/comments","events_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/390/events","html_url":"https://github.com/chriskacerguis/codeigniter-restserver/issues/390","id":54497865,"number":390,"title":"$this->get() returns false on server not on localhost","user":{"login":"eyeway68","id":2108129,"avatar_url":"https://avatars.githubusercontent.com/u/2108129?v=3","gravatar_id":"","url":"https://api.github.com/users/eyeway68","html_url":"https://github.com/eyeway68","followers_url":"https://api.github.com/users/eyeway68/followers","following_url":"https://api.github.com/users/eyeway68/following{/other_user}","gists_url":"https://api.github.com/users/eyeway68/gists{/gist_id}","starred_url":"https://api.github.com/users/eyeway68/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyeway68/subscriptions","organizations_url":"https://api.github.com/users/eyeway68/orgs","repos_url":"https://api.github.com/users/eyeway68/repos","events_url":"https://api.github.com/users/eyeway68/events{/privacy}","received_events_url":"https://api.github.com/users/eyeway68/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/labels/Waiting+for+Reply","name":"Waiting for Reply","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-15T20:12:06Z","updated_at":"2015-01-16T06:39:37Z","closed_at":null,"body":"I have this code\r\n\r\n\r\n\r\n      public function get_all_clients( $params )\r\n\t{\r\n\t\t//Getting user details from session\r\n\t\t$params['user_company'] = $this->ion_auth->get_user()->company;\r\n\t\t\r\n\t\t$response = $this->rest->get('clients/clients', $params);\r\n\t\t\r\n\t\treturn $response;\r\n\t}\r\n\r\n\r\nIn the server side the request is captured by this code\r\n\r\n\r\n    public function clients_get() {\r\n\r\n\t\t$params = $this->get();\r\n\t\t\r\n\t\t$clients = $this->get_clients_list($params);\r\n\t\t\r\n\t\tif($clients)\r\n\t\t\t$this->response($this->_create_client_array($clients), 200);\r\n\t\telse\r\n\t\t\t$this->response(array('message' => 'Unable to find any clients'), 200);\r\n\t}\r\n\r\nAlthough the $params in get_all_clients() method is an array with valid values the $this->get() returns false.\r\n\r\nThat in my remote server. The same code in my localhost works fine.\r\n\r\nAny thoughts?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/comments/70214450","html_url":"https://github.com/chriskacerguis/codeigniter-restserver/issues/390#issuecomment-70214450","issue_url":"https://api.github.com/repos/chriskacerguis/codeigniter-restserver/issues/390","id":70214450,"user":{"login":"eyeway68","id":2108129,"avatar_url":"https://avatars.githubusercontent.com/u/2108129?v=3","gravatar_id":"","url":"https://api.github.com/users/eyeway68","html_url":"https://github.com/eyeway68","followers_url":"https://api.github.com/users/eyeway68/followers","following_url":"https://api.github.com/users/eyeway68/following{/other_user}","gists_url":"https://api.github.com/users/eyeway68/gists{/gist_id}","starred_url":"https://api.github.com/users/eyeway68/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyeway68/subscriptions","organizations_url":"https://api.github.com/users/eyeway68/orgs","repos_url":"https://api.github.com/users/eyeway68/repos","events_url":"https://api.github.com/users/eyeway68/events{/privacy}","received_events_url":"https://api.github.com/users/eyeway68/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T06:39:37Z","updated_at":"2015-01-16T06:39:37Z","body":"The output is \r\narray(0){}\r\n"}}