/** * Retrieves the template used for displaying external exceptions. * This method overrides the parent implementation. */ protected function getErrorTemplate($statusCode, $exception) { // use our own template for BlogException if ($exception instanceof BlogException) { // get the path of the error template file: protected/error.html $templateFile = Prado::getPathOfNamespace('Application.error', '.html'); return file_get_contents($templateFile); } else { // otherwise use the template defined by PRADO return parent::getErrorTemplate($statusCode, $exception); } }