You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thank you for this simple framework.. really easy to use!!
I'm try to build CRUD app, but I'd love to show some friendly messages instead of
Fatal error: Uncaught PDOException: ...
I've try to turn off development mode so it will not show the error message then I can just add error message (via ajax) based on HTTP status like code 500, but I think need something more easier and readable than this, maybe something like this
// err message with db connection/query$db = new \Wolff\Core\DB('with incorrect database account');
if(!$db)
{ echo"my own friendly messages" }
$exec = $db->query('do something but error');
if(!$exec)
{ echo"my own friendly messages" }
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, thank you for this simple framework.. really easy to use!!
I'm try to build CRUD app, but I'd love to show some friendly messages instead of
Fatal error: Uncaught PDOException: ...
I've try to turn off development mode so it will not show the error message then I can just add error message (via ajax) based on HTTP status like code 500, but I think need something more easier and readable than this, maybe something like this
is this possible ?
Beta Was this translation helpful? Give feedback.
All reactions