[eluser]bubbafoley[/eluser]
[quote author="Edmundas KondraĊĦovas" date="1299907417"]Since you've loaded the cookie helper, you can just fetch the cookie with a function.
Code:
$_platform = get_cookie('platform');
And if I recall correctly, getting the cookie via Input class is like this:
Code:
$_platform = $this->input->cookie('platform');
[/quote]
This is correct. There isn't a function in the Input class called get_cookie(). The user guide implies there is one but upon inspection of the code the function doesn't exist. It makes sense, though, because get_cookie() in the cookie helper uses $this->input->cookie().
Code:
function get_cookie($index = '', $xss_clean = FALSE)
{
$CI =& get_instance();
$prefix = '';
if ( ! isset($_COOKIE[$index]) && config_item('cookie_prefix') != '')
{
$prefix = config_item('cookie_prefix');
}
return $CI->input->cookie($prefix.$index, $xss_clean);
}