Skip to main content
100%

Gist 3337665

✓ Published0🌍 Public
Aallyraza
Last edited Aug 13, 2012
Created on Aug 13, 2012

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.

AI-generated description

Similar vizzes