src/PeekAndPoke/Aviator/Mvc/View/ClearView/ClearView.php
public function render(string $view) : string
    {
        // remember current instance for global functions like out(), section(), ...
        self::$currentInstance = $this;

        // setup the initial part
        $this->parts->startPart();
        // render the view
        $this->renderView($view);
        // stop the current part
        $this->parts->stopPart();

        // reset pointer to current instance
        self::$currentInstance = null;

        // gather the content result
        return $this->parts->getContent();
    }
public function render(string $view) : string
    {
        // remember current instance for global functions like out(), section(), ...
        self::$currentInstance = $this;

        // setup the initial part
        $this->parts->startPart();
        // render the view
        $this->renderView($view);
        // stop the current part
        $this->parts->stopPart();

        // reset pointer to current instance
        self::$currentInstance = null;

        // gather the content result
        return $this->parts->getContent();
    }
@param string $view

@return string