src/mako/view/ViewFactory.php
public function assign(string $name, $value): ViewFactory
	{
		$this->globalVariables[$name] = $value;

		return $this;
	}
public function assign(string $name, $value): ViewFactory
	{
		$this->globalVariables[$name] = $value;

		return $this;
	}
public function assign ( string $ name , $ value ) : ViewFactory { $ this -> globalVariables [ $ name ] = $ value ; return $ this ; }
Assign a global view variable that will be available in all views.

@param  string                 $name  Variable name
@param  mixed                  $value View variable
@return \mako\view\ViewFactory
Assign a global view variable that will be available in all views .