CodeIgniter Forums
Output Class question! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Output Class question! (/showthread.php?tid=27741)



Output Class question! - El Forum - 02-19-2010

[eluser]bogdan3l[/eluser]
Hello!

I have a problem with the output class.
I've tried the example from (http://ellislab.com/codeigniter/user-guide/libraries/output.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!


Output Class question! - El Forum - 02-19-2010

[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)