Elgg  Version 6.1
Variables
error.php File Reference

Go to the source code of this file.

Variables

 $type = elgg_extract('type', $vars)
 The generic error page. More...
 
 $exception = elgg_extract('exception', $vars)
 
 $params = elgg_extract('params', $vars, [])
 
 $params ['exception'] = elgg_extract('exception', $params, $exception)
 
 $title = elgg_echo('error:default:title')
 
if(elgg_language_key_exists("error:{$type}:title")) if(elgg_view_exists("errors/{$type}")) else
 
 $httpCodes
 
if(isset($httpCodes[$type])) $layout = elgg_in_context('admin') && elgg_is_admin_logged_in() ? 'admin' : 'error'
 
 $body
 
 $shell = $layout
 
 if (!elgg_is_logged_in()&&elgg_get_config('walled_garden'))
 

Variable Documentation

$body
Initial value:
'title' => $title,
'content' => $content,
'filter' => false,
])
$title
Definition: error.php:20
elgg_view_layout(string $layout_name, array $vars=[])
Displays a layout with optional parameters.
Definition: views.php:352
if(isset($httpCodes[$type])) $layout
Definition: error.php:46
$content
Set robots.txt action.
Definition: set_robots.php:6

Definition at line 48 of file error.php.

Definition at line 15 of file error.php.

$httpCodes
Initial value:
= [
'400' => 'Bad Request'

Definition at line 32 of file error.php.

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

Definition at line 46 of file error.php.

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

Definition at line 17 of file error.php.

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

Definition at line 18 of file error.php.

$shell = $layout

Definition at line 54 of file error.php.

$title = elgg_echo('error:default:title')

Definition at line 20 of file error.php.

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

The generic error page.

$vars['current_url'] The current page url $vars['forward_url'] The HTTP Referer url $vars['type'] The type of error (400, 403, 404, etc) $vars['exception'] The exception which cause this page (instance of Elgg) $vars['params']['error'] The error text for the page

See also
::respondWithError()

Definition at line 14 of file error.php.

if (elgg_language_key_exists("error:{$type}:title")) if (elgg_view_exists("errors/{$type}")) else
Initial value:
{
$content = elgg_view('errors/default', $params)
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$params
Definition: error.php:17
$content
Set robots.txt action.
Definition: set_robots.php:6

Definition at line 28 of file error.php.

if(!elgg_is_logged_in()&&elgg_get_config('walled_garden'))

Definition at line 55 of file error.php.