diff options
author | Andrey Andreev <narf@devilix.net> | 2015-02-01 17:59:47 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-02-01 17:59:47 +0100 |
commit | 969153efd0253e025ab1ad02c693816f79865e58 (patch) | |
tree | b36b6dffba33c667e024b6ed729a61df121a711b /user_guide_src/source/general | |
parent | b8fe20e3d338359778ede412780206cccc4b1da3 (diff) | |
parent | 5da18e977253e4519ee32dcaef1d37657fec9fab (diff) |
Merge pull request #3533 from jim-parry/userguide/clarification
[ci skip] Clarified the template folder for errors.
Diffstat (limited to 'user_guide_src/source/general')
-rw-r--r-- | user_guide_src/source/general/errors.rst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/user_guide_src/source/general/errors.rst b/user_guide_src/source/general/errors.rst index 721c78ca7..112dd83e1 100644 --- a/user_guide_src/source/general/errors.rst +++ b/user_guide_src/source/general/errors.rst @@ -37,9 +37,10 @@ The following functions let you generate errors: :rtype: void This function will display the error message supplied to it using the -following error template:: +error template appropriate to your execution:: - application/views/errors/error_general.php + application/views/errors/html/error_general.php or + application/views/errors/cli/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, @@ -56,9 +57,10 @@ status code will be set to ``EXIT_ERROR``. You can check in :rtype: void This function will display the 404 error message supplied to it using -the following error template:: +the error template appropriate to your execution:: - application/views/errors/error_404.php + application/views/errors/html/error_404.php or + application/views/errors/cli/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``. |