Welcome Guest, Not a member yet? Register   Sign In
$this->output->set_header
#1

[eluser]louis w[/eluser]
I was looking at this example in the user guide for the set_header method of the output library.

Code:
$this->output->set_header("Cache-Control: post-check=0, pre-check=0", false);

Wondering what the second param 'false' is for? I checked Output.php and set_header only accepts one param.
#2

[eluser]Derek Allard[/eluser]
The set_header() function (at least in the repository) has another. I think this is just a case where the svn and the live got a bit out of sync. Apologies, and nice catch.
Code:
function set_header($header, $replace = TRUE)
{
    $this->headers[] = array($header, $replace);
}




Theme © iAndrew 2016 - Forum software by © MyBB