You are not logged in.
Hello Jon,
Could you tell us how we can make standard php exception handler similar to yours, Jon? In your videos, your php exceptions looks very cool.. Everything wrapped into lines, but mine is printed just inline. Very hard to find the actual error msg, lines and etc..
Thanks ;)
Offline
Wow... I just found very simple solution.
In PHP.ini, just uncomment error_prepend_string, error_append_string and change the current html tag to <PRE></PRE>.
It will look like:
error_prepend_string = "<pre>"
error_append_string = "</pre>"
Now, I need to wrap it and give a little color.
Offline
Just made it a little bit better:
error_prepend_string = "<pre style='white-space: pre-wrap;white-space: -moz-pre-wrap;white-space: -pre-wrap;white-space: -o-pre-wrap;word-wrap: break-word;font-size: 12px; font-family:Arial'>"
Now, fatal error looks much much better...
If Jon shares his decorators, mmm.....
Last edited by beregu (2010-06-14 16:38:50)
Offline
hey beregu ,
If you mean like this image 
so you should learn more about Xdebug check out this article
http://devzone.zend.com/article/2803
Offline
Thanks tawfekov. That's exactly what I needed..
Last edited by beregu (2010-06-14 16:39:15)
Offline
And I've been searching for this info for days!! Thanks for sharing! nz pokies
Offline
You can take it a step further too!
Offline
Hey I've tried the method at http://www.iezzi.ch/archives/397
"All you need is an ErrorController and the modified shiny.phtml view script. You can grab both from our Subversion repository"
Replaced my ErrorController and added the shiny.phtml to my views/scripts/errors folder but still no change. Is there something else missing?
Offline
I think you also need to add:
resources.frontController.errorview = shiny
To your config file.
Offline
Yeah that did the trick thanks so much!
Offline