system/CodeIgniter.php
public function spoofRequestMethod()
	{
		if (is_cli())
		{
			return;
		}

		// Only works with POSTED forms
		if ($this->request->getMethod() !== 'post')
		{
			return;
		}

		$method = $this->request->getPost('_method');

		if (empty($method))
		{
			return;
		}

		$this->request = $this->request->setMethod($method);
	}
public function spoofRequestMethod()
	{
		if (is_cli())
		{
			return;
		}

		// Only works with POSTED forms
		if ($this->request->getMethod() !== 'post')
		{
			return;
		}

		$method = $this->request->getPost('_method');

		if (empty($method))
		{
			return;
		}

		$this->request = $this->request->setMethod($method);
	}
Modifies the Request Object to use a different method if a POST
variable called _method is found.

Does not work on CLI commands.