Hi,
I'm not much of a CodeIgniter guy, but I was able to get this partially running on windows/iis7. I had to define getallheaders in request_helpers.php:
if (!function_exists('getallheaders'))
{
function getallheaders()
{
foreach ($_SERVER as $name => $value)
{
if (substr($name, 0, 5) == 'HTTP_')
{
$headers = $value;
}
}
return $headers;
}
}
I also turned on enable_query_strings because iis doesn't like to expose index.php without referencing it in the path.
Okay, well I should have thought of this earlier, but all I have to do is specify the m=table query string: http://devwrk20/myfolder/index.php/myentity(1)?m=table
So I wonder if I can get rid of the query string?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm not much of a CodeIgniter guy, but I was able to get this partially running on windows/iis7. I had to define getallheaders in request_helpers.php:
if (!function_exists('getallheaders'))
{
function getallheaders()
{
foreach ($_SERVER as $name => $value)
{
if (substr($name, 0, 5) == 'HTTP_')
{
$headers = $value;
}
}
return $headers;
}
}
I also turned on enable_query_strings because iis doesn't like to expose index.php without referencing it in the path.
So when I go to http://localhost/myfolder/index.php?c=odata&m=index I get metadata output that is identical to http://localhost/myfolder/index.php. Can I can see in the logs that myfolder/system/application/views/atom_collections_edm.php is being loaded to service request. But how do I drill into my entities. I would have thought that http://localhost/myfolder/index.php/myentity(1) would have returned one entry with a primary key of 1. Or http://localhost/myfolder/index.php/myentity/ would return all of myentity entries. But I just get basic list of feeds. Any help would be appreciated.
Okay, well I should have thought of this earlier, but all I have to do is specify the m=table query string: http://devwrk20/myfolder/index.php/myentity(1)?m=table
So I wonder if I can get rid of the query string?
Thanks.
Hi,
This is working great for reads, so far. This is an awesome implementation.
It looks like the oData.php controller will only support POST/PUT via XML?
Any plans to support JSON POST/PUT?
Thanks.
Ken.