Ip\View::render PHP Method

render() public method

Render a view and return HTML, XML, or any other string.
public render ( ) : string
return string
    public function render()
    {
        extract($this->data);
        ob_start();
        $file = $this->file;
        if (!empty(self::$overrides[$file])) {
            $file = self::$overrides[$file];
        }
        require $file;
        // file existence has been checked in ipView function
        $output = ob_get_contents();
        ob_end_clean();
        return $output;
    }