I'm having a problem with regards to Codeigniter Restful authentication. Without the authentication, it works fine. But then when I set the authentication to either "basic" or "digest", response returned is NULL.
I have two(2) codeigniter setup. One is only for the API's and the second is for the web application itself. Here's a snippet of my code.
on the rest.php of the API installation:
$config['rest_auth'] = 'digest';
$config['rest_valid_logins'] = array('admin' => '1234');
on the model of the Web Application installation:
$apiUrl = 'http://localhost/api/blog/posts';
$config = array('server' => $apiUrl,
'http_user' => 'admin',
'http_pass' => '1234',
'http_auth' => 'digest'
);
$this->rest->initialize($config);
$data = $this->rest->get($apiUrl, $args');
Thanks!