{"version":"1.0","type":"rich","title":"Gist 3337665","description":"This example demonstrates a server-side error-handling routine in a PHP application built with the Yii framework. It shows how the controller responds to an error by checking whether the request is an AJAX call, then either echoing the error message directly or rendering the full error view. The code uses Yii’s `Yii::app()->errorHandler->error` property to retrieve error details, and the `isAjaxRequest` property to branch the response. It does not include any data visualization or charting libraries, focusing instead on backend logic for error presentation.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-3337665?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}