[eluser]nagata[/eluser]
Found this while searching thru system core, its basicly the function you call,
see the $template? Its Undocumented variavle of this...
Havent tested anything yet but you can either way take the App/Errors/error_general.php and edit it to your liking, or you can bases on it create your error display page, that way
having to use show_error('Yay', 'ME BE GENIUS', 'custom_rrror');
Code:
function show_error($heading, $message, $template = 'error_general', $status_code = 500)
{
set_status_header($status_code);
$message = '<p>'.implode('</p><p>', ( ! is_array($message)) ? array($message) : $message).'</p>';
if (ob_get_level() > $this->ob_level + 1)
{
ob_end_flush();
}
ob_start();
include(APPPATH.'errors/'.$template.'.php');
$buffer = ob_get_contents();
ob_end_clean();
return $buffer;
}