Mecha CMS

Reserved variables.

$lot

Return the custom variable that added in the layout argument.

2.0.0

This variable exists on every file attached by the Layout::get() method when the second argument is defined and is an array. In this example, variable $lot['body'] will be available in .\path\to\file.php file.

Example:

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