Welcome Guest, Not a member yet? Register   Sign In
Rest Variable Problem
#1

[eluser]Julian_Omaha[/eluser]
I am getting my REST connection working fine. When I pass no variables, it works fine. When I add a variable (shown below). I am getting a 404. Any advice?

$this->load->library('curl');
$this->load->library('rest', array(
'server' => 'http://www dot domain dot com/webservices/onduty/',
'http_user' => 'admin',
'http_pass' => '1234',
'http_auth' => 'basic'
));

$user = $this->rest->get('crewsOnduty', array('customer_id' => '1'), 'XML');

$data['employee'] = $user;


$this->load->helper('url');
$this->load->view('welcome_message', $data);
#2

[eluser]Phil Sturgeon[/eluser]
If you are connecting to a CodeIgniter Rest Server you need to make sure your CodeIgniter config is set up to work with GET variables.

http://ellislab.com/forums/viewthread/99570/




Theme © iAndrew 2016 - Forum software by © MyBB