Welcome Guest, Not a member yet? Register   Sign In
codeigniter routing problem with http POST

In my MY_Controller.php I have

public function _remap($method, $args) {
if ( ! method_exists($this,"{$method}_{$postfix}")) {
call_user_func_array(array($this, "{$method}_{$postfix}"), $args);

In my config/routes.php, I have

$route['apps/upload'] = 'apps/app_upload/upload';

In my CI controller `apps/app_upload.php`, I have a `upload_POST` function and `upload_GET` function. sending HTTP GET request to `/apps/upload` works fine. however, sending HTTP POST request to `/apps/upload` doesn't hit the `_remap` function at all, hence never reach the upload_POST function.

what could be the problem here?

oops, the above code works perfectly and the fault is at my testing script. ;/

Theme © iAndrew 2016 - Forum software by © MyBB