summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/general
diff options
context:
space:
mode:
authorMaster Yoda <jim_parry@bcit.ca>2015-01-29 20:36:42 +0100
committerMaster Yoda <jim_parry@bcit.ca>2015-01-29 20:36:42 +0100
commit8b669f5bffafb26d83f5d78f45e267693d06606e (patch)
treee6226969f266a5761fc3af0adb3456c1fe794c91 /user_guide_src/source/general
parenta92de4b8d6675c458e71f56b8e600e9e03af0430 (diff)
Clarified the template folder for errors.
Verified that the user guide build works. Signed-off-by:Master Yoda <jim_parry@bcit.ca>
Diffstat (limited to 'user_guide_src/source/general')
-rw-r--r--user_guide_src/source/general/errors.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/user_guide_src/source/general/errors.rst b/user_guide_src/source/general/errors.rst
index 721c78ca7..efa0f19ff 100644
--- a/user_guide_src/source/general/errors.rst
+++ b/user_guide_src/source/general/errors.rst
@@ -39,7 +39,7 @@ The following functions let you generate errors:
This function will display the error message supplied to it using the
following error template::
- application/views/errors/error_general.php
+ application/views/errors/html/error_general.php
The optional parameter ``$status_code`` determines what HTTP status
code should be sent with the error. If ``$status_code`` is less than 100,
@@ -58,7 +58,7 @@ status code will be set to ``EXIT_ERROR``. You can check in
This function will display the 404 error message supplied to it using
the following error template::
- application/views/errors/error_404.php
+ application/views/errors/html/error_404.php
The function expects the string passed to it to be the file path to the
page that isn't found. The exit status code will be set to ``EXIT_UNKNOWN_FILE``.
@@ -107,4 +107,8 @@ There are three message types:
directory must be writable. In addition, you must set the "threshold"
for logging in *application/config/config.php*. You might, for example,
only want error messages to be logged, and not the other two types.
- If you set it to zero logging will be disabled. \ No newline at end of file
+ If you set it to zero logging will be disabled.
+
+.. note:: If you run PHP from the command line, then the error templates mentioned
+ above will come from the "application/views/errors/cli" folder, instead
+ of the "application/views/errors/html" one. \ No newline at end of file