Return to Snippet

Revision: 34959
at October 31, 2010 06:27 by joaobarbosa


Initial Code
# NO ARQUIVO CONFIG.PHP

$config['uri_protocol']	= "PATH_INFO";

# EXEMPLO NO CONTROLLER

class Welcome extends Controller {
 
	function Welcome()
	{
		parent::Controller();	
	}
 
	function index()
	{	
		parse_str($_SERVER['QUERY_STRING'],$_GET); //converts query string into global GET array variable
		print_r($_GET); //test the $_GET variables
		$this->load->view('welcome_message');
	}
}

Initial URL


Initial Description
Basta mudar a linha correspondente no arquivo de configuração do CI

Initial Title
Ativar método GET

Initial Tags
codeigniter

Initial Language
PHP