summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/output.rst
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2011-10-05 22:52:41 +0200
committerDerek Jones <derek.jones@ellislab.com>2011-10-05 22:52:41 +0200
commit36be96982c8b8dcf19faf9de08361301499e4134 (patch)
tree20cba761d7e6987d2bbb2807c0827c21cfa389ec /user_guide_src/source/libraries/output.rst
parenteb946d0ddec00fc7b341168997c401be66da416f (diff)
fixed code block spacing in Loader, Output, and Pagination lib docs
Diffstat (limited to 'user_guide_src/source/libraries/output.rst')
-rw-r--r--user_guide_src/source/libraries/output.rst10
1 files changed, 8 insertions, 2 deletions
diff --git a/user_guide_src/source/libraries/output.rst b/user_guide_src/source/libraries/output.rst
index 8b9b047d0..2cf7c0854 100644
--- a/user_guide_src/source/libraries/output.rst
+++ b/user_guide_src/source/libraries/output.rst
@@ -74,14 +74,20 @@ $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"); $this->output->set_header("Pragma: no-cache");
+ $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");
+ $this->output->set_header("Pragma: no-cache");
$this->output->set_status_header(code, 'text');
=================================================
Permits you to manually set a server status header. Example::
- $this->output->set_status_header('401'); // Sets the header as: Unauthorized
+ $this->output->set_status_header('401');
+ // Sets the header as: Unauthorized
`See here <http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html>`_ for
a full list of headers.