Welcome Guest, Not a member yet? Register   Sign In
Output Class question!
#1

[eluser]bogdan3l[/eluser]
Hello!

I have a problem with the output class.
I've tried the example from (http://ellislab.com/codeigniter/user-gui...utput.html):

$this->output->set_header("HTTP/1.0 200 OK");
$this->output->set_header("HTTP/1.1 200 OK");
$this->output->set_header('Last-Modified: '.gmdate('D, d M Y H:iConfused', $last_update).' GMT');
$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate");
$this->output->set_header("Cache-Control: post-check=0, pre-check=0");
$this->output->set_header("Pragma: no-cache");

and i get an error from $last_update variable.

How should i set the $last_update? An example or something would be great.

Thanks a lot!
#2

[eluser]rogierb[/eluser]
$last_update is just a variable with a unix timestamp. The timestamp should represent the last time the page was edited eg. mktime(5, 56,23, 2, 19, 2020)




Theme © iAndrew 2016 - Forum software by © MyBB