Mecha CMS

Reserved variables.


Return the custom variable that added in the layout argument.


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.


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