summaryrefslogtreecommitdiffstats
path: root/user_guide/general/errors.html
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2010-08-05 16:08:33 +0200
committerDerek Allard <derek.allard@ellislab.com>2010-08-05 16:08:33 +0200
commit2ddc9496e9403a59a87b644d1c2b9a106b773e46 (patch)
tree5762dccce2cc5c308cbc8224f09442729cac4bc3 /user_guide/general/errors.html
parent073e15cea53c53b73a215a86a22aabe4d5db2549 (diff)
Added an optional second parameter to <kbd>show_404()</kbd> to disable logging.
Diffstat (limited to 'user_guide/general/errors.html')
-rw-r--r--user_guide/general/errors.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/user_guide/general/errors.html b/user_guide/general/errors.html
index 7c585d1b9..5bd5011ae 100644
--- a/user_guide/general/errors.html
+++ b/user_guide/general/errors.html
@@ -76,13 +76,15 @@ about class/function scoping.</p>
<p><dfn>application/errors/</dfn><kbd>error_general.php</kbd></p>
<p>The optional parameter $status_code determines what HTTP status code should be sent with the error.</p>
-<h2>show_404('<var>page</var>')</h2>
+<h2>show_404('<var>page</var>' [, '<var>log_error</var>'])</h2>
<p>This function will display the 404 error message supplied to it using the following error template:</p>
<p><dfn>application/errors/</dfn><kbd>error_404.php</kbd></p>
<p>The function expects the string passed to it to be the file path to the page that isn't found.
Note that CodeIgniter automatically shows 404 messages if controllers are not found.</p>
+<p>CodeIgniter automatically logs any show_404() calls. Setting the optional second parameter to FALSE will skip logging.</p>
+
<h2>log_message('<var>level</var>', '<samp>message</samp>')</h2>