Jump to content

404 on GET Request codeigniter


lilmer

Recommended Posts

I am using a 1.7 codeigniter and I have a problem using GET request. I use GET because I'm doing a cross browsing ajax with dataType JSONP. When doing a direct access to a method with GET paramater it says 404 error.

Here's my sample

http://www.site.com/class/method?callback=sample&[email protected] 404 ERROR

but when doing this

http://www.site.com/class/method/?callback=sample&[email protected] WORKING

page loaded but no GET request found. I've been debugging the the framework but still can't find why the page is getting 404 when doing the first sample. By the way the CI framework was modify by someone I don't know.

 

By the way the query string is enable already, but I don't understand the Russian language comment on top

    // При активации этой возможности вызов контроллеров и методов производится через QueryString (www.site.com/index.php?c=controller&m=method)
    $config['enable_query_strings'] = TRUE;
    $config['allow_get_array']      = TRUE;

Can anyone help me to process a AJAX request using JSONP.  Thanks

Link to comment
https://forums.phpfreaks.com/topic/286931-404-on-get-request-codeigniter/
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.