When a PHP error is thrown in Yii you get a PHP Warning Page with a Stack Trace.
Is it possible to show my own version of this page. I thought this was included in the errorHandler, but nothing i change effects the error page.
Since we've got an important update to our system new out of Beta, with extra updates coming soon, I would like to give our users a dump of relevant POST data so that they dont completely lose their work. (The data they're adding is gained over the phone, so the only option they have at the moment is to listen back to their phone conversation, which isn't every efficient.
Any ideas would be welcome
EDIT: I have tried using the Yii errorHandler, but nothing i do seems to change outcome. I'll add my code:
main config
'errorHandler'=>array(
// use 'site/error' action to display errors
'errorAction'=>'site/error',
),
SiteController
if($error=Yii::app()->errorHandler->error)
{
$this->render('error', $error);
}
The error view only conatains html at the moment, but I still always get the error page with the Stack Trace