share()
share(array|string $variables, mixed $value = null) : $this
Share variables (local templates parameters) with all future templates rendered.
Parameters
array|string | $variables | a variables name-value pairs or a single variable name |
mixed | $value | the variable value if the first argument given is a string |
Returns
$thisExamples
'fr')
** File not found : $renderer->share('lang', **
=> 'My blog', 'today' => new DateTime()])
** File not found : $renderer->share(['title' **