public static function data($key, $value)
    {
        if ($value === null) {
            unset(self::$shared[$key]);
        } else {
            self::$shared[$key] = $value;
        }
    }
public static function data($key, $value)
    {
        if ($value === null) {
            unset(self::$shared[$key]);
        } else {
            self::$shared[$key] = $value;
        }
    }
public static function data ( $ key , $ value ) { if ( $ value === null ) { unset ( self :: $ shared [ $ key ] ) ; } else { self :: $ shared [ $ key ] = $ value ; } }
Share or remove shared data to Views, shared variables will be added as variables to the views that will be executed later

@param string $key
@param mixed  $value
@return void
Share or remove shared data to Views shared variables will be added as variables to the views that will be executed later