如何从php codeigniter中的url获取值,并根据该值显示结果

如何从php codeigniter中的url获取值,并根据该值显示结果,php,codeigniter,Php,Codeigniter,我正在使用php codeigniter。如何从codeigniter中的url获取值。假设我想从url获取值3,并根据该值使用if-else显示结果。我使用下拉菜单,所以每次值都会更改,所以结果也应该更改 url-使用: $this->input->get('value'); .为此使用uri_段()。你的意思是:http://xyz.ca/show/show/getMortgage/?value=3或http://xyz.ca/show/show/getMortgage/val

我正在使用php codeigniter。如何从codeigniter中的url获取值。假设我想从url获取值3,并根据该值使用if-else显示结果。我使用下拉菜单,所以每次值都会更改,所以结果也应该更改

url-

使用:

$this->input->get('value');

.

为此使用uri_段()。你的意思是:
http://xyz.ca/show/show/getMortgage/?value=3
http://xyz.ca/show/show/getMortgage/value/3
?对不起,url不正确。如何从codeigniter中的url获取值?请尝试
$this->input->get('value',TRUE)