Elgg  Version 2.3
Variables
error.php File Reference

Go to the source code of this file.

Variables

 $type = elgg_extract('type', $vars)
 
 $params = elgg_extract('params', $vars, [])
 
if(elgg_view_exists("errors/$type")) else
 
 $content = elgg_view("errors/default", $params)
 
 $httpCodes
 
if(isset($httpCodes[$type])) $layout = elgg_in_context('admin') && elgg_is_admin_logged_in() ? 'admin' : 'error'
 
 $body
 

Variable Documentation

$body
Initial value:
'title' => $title,
'content' => $content,
))
$content
Definition: error.php:16
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
Definition: views.php:689
$title
Definition: save.php:22
if(isset($httpCodes[$type])) $layout
Definition: error.php:33

Definition at line 35 of file error.php.

$content = elgg_view("errors/default", $params)

Definition at line 16 of file error.php.

$httpCodes
Initial value:
= array(
'400' => 'Bad Request',
'401' => 'Unauthorized',
'403' => 'Forbidden',
'404' => 'Not Found',
'407' => 'Proxy Authentication Required',
'500' => 'Internal Server Error',
'503' => 'Service Unavailable',
)

Definition at line 19 of file error.php.

if (isset($httpCodes[$type])) $layout = elgg_in_context('admin') && elgg_is_admin_logged_in() ? 'admin' : 'error'

Definition at line 33 of file error.php.

$params = elgg_extract('params', $vars, [])

Definition at line 4 of file error.php.

$type = elgg_extract('type', $vars)

Definition at line 3 of file error.php.

if (elgg_view_exists("errors/$type")) else
Initial value:
{
$title = elgg_echo("error:default:title")
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$title
Definition: save.php:22

Definition at line 14 of file error.php.