Mecha CMS

Learn.

Variables

Author: Taufik Nurrohman · 171 Views

Tweet

Reserved variables.

These PHP variables are reserved. You shouldn’t redefine these PHP variables where possible. Please consider to choose another variable names other than these.

$config 

This variable is an instance of the Config class.

$date 

This variable is an instance of the Date class with current time as the input.

$language 

This variable is an instance of the Language class.

$lot 

This variable exists on every file attached by the Shield::get() method when the second argument is defined and is an array:

Shield::get('path/to/file.php', ['body' => 'Lorem ipsum dolor sit amet.']);

$message 

This variable is the result of Message::get(). 1

$site 

This is an alias for $config.

$state 

This variable returns the state data of the current shield if available, and is an instance of the State class.

$token 

This variable is the result of Guardian::token(). 1

$url 

This variable is an instance of the URL class.

$u_r_l 

This is an alias for $url.

$pages 

This variable contains list of the Page class instances. 1

$page 

This variable is an instance of the Page class with current page path as the input. 1

$pager 

This variable is an instance of the Elevator class. 1


  1. Added by the [page][link:7361394f34fd4312b1f12182f96bb3c3-5951a18a78e32] extension. 

0 Comments

No comments yet.