Elgg  Version 3.0
Variables
error.php File Reference

Go to the source code of this file.

Variables

 $type = elgg_extract('type', $vars)
 
 $params = elgg_extract('params', $vars, [])
 
 $title = elgg_echo('error:default: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,
])
$title
Definition: error.php:6
$layout
Definition: error.php:24
elgg_view_layout($layout_name, $vars=[])
Displays a layout with optional parameters.
Definition: views.php:593
$content
Set robots.txt action.
Definition: set_robots.php:6

Definition at line 35 of file error.php.

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

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.

$shell = $layout

Definition at line 40 of file error.php.

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

Definition at line 6 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:
{
$content = elgg_view("errors/default", $params)
$params
Definition: error.php:4
$content
Set robots.txt action.
Definition: set_robots.php:6
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246

Definition at line 15 of file error.php.

Definition at line 41 of file error.php.