From f5136324480febd419f8f9683db61736921c2506 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 21 Sep 2006 02:44:57 +0000 Subject: --- user_guide/libraries/output.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'user_guide/libraries/output.html') diff --git a/user_guide/libraries/output.html b/user_guide/libraries/output.html index d2353ead1..0f474555e 100644 --- a/user_guide/libraries/output.html +++ b/user_guide/libraries/output.html @@ -92,6 +92,18 @@ For example, if you build a page in one of your controller functions, don't set Code Igniter functions like $this->load->view().

+

$this->output->set_header();

+ +

Permits you to manually set server headers, which the output class will send for you when outputting the final rendered display. Example:

+ + +$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:i:s', $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", false);
+$this->output->set_header("Pragma: no-cache");
+ -- cgit v1.2.3-24-g4f1b