protected function addGlobal(string $key, $value)
    {
        $template = $this->getContext()->getTemplateEngine();
        $template->addGlobal($key, $value);
    }
protected function addGlobal(string $key, $value)
    {
        $template = $this->getContext()->getTemplateEngine();
        $template->addGlobal($key, $value);
    }
protected function addGlobal ( string $ key , $ value ) { $ template = $ this -> getContext ( ) -> getTemplateEngine ( ) ; $ template -> addGlobal ( $ key , $ value ) ; }
Add a variable that will be globally accessible in the template

@param string $key
@param $value
Add a variable that will be globally accessible in the template