Welcome Guest, Not a member yet? Register   Sign In
Having trouble with $_GET variables
#5

[eluser]Tandubhai[/eluser]
You can do in this way with your own custom uri helper:
function uri_assoc($var, $segment = 3) {

$CI =& get_instance();

$uri_assoc = $CI->uri->uri_to_assoc($segment);

if (isset($uri_assoc[$var])) {

return $uri_assoc[$var];

}

else {

return NULL;

}

}



$this->load->helper('uri');
uri_assoc('msgid',2);
uri_assoc('number',2);
uri_assoc('message',2);


Messages In This Thread
Having trouble with $_GET variables - by El Forum - 11-04-2009, 04:23 AM
Having trouble with $_GET variables - by El Forum - 11-04-2009, 04:25 AM
Having trouble with $_GET variables - by El Forum - 11-04-2009, 04:30 AM
Having trouble with $_GET variables - by El Forum - 11-04-2009, 10:57 AM
Having trouble with $_GET variables - by El Forum - 11-15-2009, 05:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB