Error page in production (CI 3) |
Hello,
Actually, in production mode, an error will send blank page to user. Is it possible to send a fixed error html page (blank page is ambigous for users), just to say there is an error ? In advance, thank you.
I found a temp solution but I don't like it because I modified a file in system directory :
system/core/Common.php : PHP Code: function _exception_handler($exception)
07-04-2024, 10:18 AM
(This post was last modified: 07-04-2024, 10:19 AM by captain-sensible. Edit Reason: typo )
for use of a "contact us" form the submitted data gets handled in a controller leveraging PHPMailer . I just use a view called info2.php which as :
[CODE} <?php echo $info;?> <?php echo $infoException;?> [/CODE] I want simple error output if the message doesnt get sent. In the controller I have Code: try So if error is caught i call the view info2.php and pass data to it im using my gmail to rely out email , when the user name or password is not right as an example the following is output [CODE} something went wrong with sending message SMTP Error: Could not authenticate. [/CODE] that happened recently ..on a live web in production mode ; key words " could not authenticate" was enough info for me to check user and pass creentials . with i guess judicious use of try catch in controllers ,you msy be able to set things up for every evenuality |
Welcome Guest, Not a member yet? Register Sign In |