php - display exception on div block -
is possible display exception on particular div block?
catch (exception $e) { // want display message on html div block. echo $e->getmessage(); exit; }
edit -> suppose have index.php file. , there div block called error. want show exception on <div id="error"> </div>
thanks
catch (exception $e) { // want display message on html div block. echo sprintf('<div>%s</div>', $e->getmessage()); exit; }
Comments
Post a Comment