A post from android with data gives 404 error |
ahhhh you want to work with the RESTfull API
okay, so your method can't be named just "post", try "index_post" or what you want. you need a controller who extend REST_Controller called as you want (Api for example) PHP Code: class Api extends REST_Controller { all that routes is only one Route http://localhost/api/user.json afeter that, routing on method depend how you send data, jQuery :: $ajax.post(), $ajax.delete() etc... OKay my bad, don't read as well... did you try to put an index.php in your url ? maybe is just the apache mod_rewrite who don't work or maybe an nginx directive who's missing |
Messages In This Thread |
A post from android with data gives 404 error - by muchemi - 02-10-2016, 06:18 AM
RE: A post from android with data gives 404 error - by Diederik - 02-10-2016, 07:18 AM
RE: A post from android with data gives 404 error - by keulu - 02-10-2016, 09:44 AM
RE: A post from android with data gives 404 error - by muchemi - 02-15-2016, 12:09 AM
RE: A post from android with data gives 404 error - by Diederik - 02-16-2016, 01:44 AM
RE: A post from android with data gives 404 error - by Chandini - 02-16-2016, 02:32 AM
RE: A post from android with data gives 404 error - by keulu - 02-16-2016, 04:30 AM
RE: A post from android with data gives 404 error - by Ilya Aranov - 02-21-2016, 07:30 AM
|