summaryrefslogtreecommitdiffstats
path: root/user_guide_src
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-04-03 11:30:50 +0200
committerAndrey Andreev <narf@bofh.bg>2012-04-03 11:30:50 +0200
commit00adf1d480f94692a625ec2165e0fcc9171c6e2f (patch)
tree8e45d70039bd5e918ee76d4512a3d6635deb39d7 /user_guide_src
parent3178285527c11d6dbe6a9b03ea3cec162da031fb (diff)
Some improvements to the additions from pull #1234
Diffstat (limited to 'user_guide_src')
-rw-r--r--user_guide_src/source/changelog.rst4
-rw-r--r--user_guide_src/source/libraries/output.rst6
2 files changed, 6 insertions, 4 deletions
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index 770d68a8e..c3e0e1dc0 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -129,8 +129,8 @@ Release Date: Not Released
- Added method() to CI_Input to retrieve $_SERVER['REQUEST_METHOD'].
- Modified valid_ip() to use PHP's filter_var() in the :doc:`Input Library <libraries/input>`.
- Added support for HTTP-Only cookies with new config option ``cookie_httponly`` (default FALSE).
- - Renamed method _call_hook() to call_hook() in the :doc:`Hooks Library <general/hooks.html>`.
- - Added get_content_type for get current mime-types :doc:`Core Output Library <core/output>`.
+ - Renamed method _call_hook() to call_hook() in the :doc:`Hooks Library <general/hooks>`.
+ - Added get_content_type() method to the :doc:`Output Library <libraries/output>`.
Bug fixes for 3.0
------------------
diff --git a/user_guide_src/source/libraries/output.rst b/user_guide_src/source/libraries/output.rst
index 7fd2a1c72..baceaae7b 100644
--- a/user_guide_src/source/libraries/output.rst
+++ b/user_guide_src/source/libraries/output.rst
@@ -52,9 +52,11 @@ data, JPEG's, XML, etc easily.
$this->output->get_content_type();
==========================================
-Get the current mime-type of your page and return 'text/html' by default.
+Returns the Content-Type HTTP header that's currently in use.
- $this->output->get_content_type();
+ $mime = $this->output->get_content_type();
+
+.. note:: If not set, the default return value is 'text/html'.
$this->output->get_output();
=============================