EllisLab/CodeIgniter — Issue #905: Error pages - user guide and i18n improvements, custom title
Author: hansfn
Created: 2012-01-09 13:54:36+00:00
State: open

## User guide

Ref http://codeigniter.com/user_guide/general/errors.html

```php
show_error('message' [, int $status_code= 500 ] )
```
should be replaced with

```php
show_error('heading', 'message' [, template = 'error_general', [int status_code = 500]])
```
and the text updated.

## Custom title

Currently you can set the heading and the message for error pages, but not the title. The title is hard-coded:

* errors/error_404.php:`

404 Page Not Found

`
* errors/error_db.php:`

Database Error

`
* errors/error_general.php:`

Error

`

To me it's OK to use the heading as title so we don't have to change the signature of the show_error function.

## Translation

The heading and message strings aren't translatable for the 404 page:

```php
function show_404($page = '', $log_error = TRUE)
{
$heading = "404 Page Not Found";
$message = "The page you requested was not found.";
```
I think it would be an improvement if these two strings were translatable.