public function setBoth($key, $value = null): void
    {
        $this->_controller->set($key, $value);
        $this->setJson($key, $value);
    }
public function setBoth($key, $value = null): void
    {
        $this->_controller->set($key, $value);
        $this->setJson($key, $value);
    }
public function setBoth ( $ key , $ value = null ) : void { $ this -> _controller -> set ( $ key , $ value ) ; $ this -> setJson ( $ key , $ value ) ; }
Set a variable to both the frontend controller and the backend view

@param string|array $key string key or array of key=>value
@param mixed $value var value
@return void
Set a variable to both the frontend controller and the backend view