summaryrefslogtreecommitdiffstats
path: root/user_guide_src
diff options
context:
space:
mode:
authorSongpol Sripaoeiam <sripaoeiam@gmail.com>2012-04-01 06:43:20 +0200
committerSongpol Sripaoeiam <sripaoeiam@gmail.com>2012-04-01 06:43:20 +0200
commit52fe7bb68f9961cdd765dd38e54779ae3b66e586 (patch)
treea0b1b99469e9cc4f5004e9a29af2ffdb4baff95e /user_guide_src
parent3396d531e2f3864d06860cdbdf7320bc121f77f1 (diff)
add function get_current_content_type to output class and user manual library
Diffstat (limited to 'user_guide_src')
-rw-r--r--user_guide_src/source/libraries/output.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/user_guide_src/source/libraries/output.rst b/user_guide_src/source/libraries/output.rst
index 2cf7c0854..8cd5ff895 100644
--- a/user_guide_src/source/libraries/output.rst
+++ b/user_guide_src/source/libraries/output.rst
@@ -49,6 +49,13 @@ data, JPEG's, XML, etc easily.
.. important:: Make sure any non-mime string you pass to this method
exists in config/mimes.php or it will have no effect.
+$this->output->get_current_content_type();
+====================================
+
+Get the current mime-type of your page and return 'text/html' by default.
+
+ $this->output->get_current_content_type();
+
$this->output->get_output();
=============================