Menu

Help on windows?

Help
cosmo
2011-06-20
2013-05-16
  • cosmo

    cosmo - 2011-06-20

    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.

     
  • cosmo

    cosmo - 2011-06-20

    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.

     
  • cosmo

    cosmo - 2011-06-24

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.