src/Controller.php
public function setViewItem(string $name, $value): void
    {
        $this->viewItems->set($name, $value);
    }
public function setViewItem(string $name, $value): void
    {
        $this->viewItems->set($name, $value);
    }
public function setViewItem ( string $ name , $ value ) : void { $ this -> viewItems -> set ( $ name , $ value ) ; }
Sets a view item.

@since 1.0.0

@param string $name  The view item name.
@param mixed  $value The view item value.
Sets a view item .