summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries/output.html
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-21 04:44:57 +0200
committeradmin <devnull@localhost>2006-09-21 04:44:57 +0200
commitf5136324480febd419f8f9683db61736921c2506 (patch)
tree374cc752e36028975babd157f01f55d3a5ca11ab /user_guide/libraries/output.html
parent460f2678d1ba46f231466232cf1352353d62d598 (diff)
Diffstat (limited to 'user_guide/libraries/output.html')
-rw-r--r--user_guide/libraries/output.html12
1 files changed, 12 insertions, 0 deletions
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 <var>$this->load->view()</var>.</p>
+<h2>$this->output->set_header();</h2>
+
+<p>Permits you to manually set server headers, which the output class will send for you when outputting the final rendered display. Example:<p>
+
+<code>
+$this->output->set_header("HTTP/1.0 200 OK");<br />
+$this->output->set_header("HTTP/1.1 200 OK");<br />
+$this->output->set_header('Last-Modified: '.gmdate('D, d M Y H:i:s', $last_update).' GMT');<br />
+$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate");<br />
+$this->output->set_header("Cache-Control: post-check=0, pre-check=0", false);<br />
+$this->output->set_header("Pragma: no-cache"); </code>
+
</div>
<!-- END CONTENT -->