src/Models/View.php
public function output()
    {
        // If the view file exists
        if ($this->hasFile()) {
            // Extract all view variables
            extract($this->getVars());
            ob_start();
            include($this->getPath() . '/' . $this->getFile(true));
            $html = ob_get_contents();
            ob_end_clean();
            return $html;
        } else {
            die('Fatal Error: ' . $this->getPath() . '/' . $this->getFile(true) . ' does not exist.');
        }
    }
public function output()
    {
        // If the view file exists
        if ($this->hasFile()) {
            // Extract all view variables
            extract($this->getVars());
            ob_start();
            include($this->getPath() . '/' . $this->getFile(true));
            $html = ob_get_contents();
            ob_end_clean();
            return $html;
        } else {
            die('Fatal Error: ' . $this->getPath() . '/' . $this->getFile(true) . ' does not exist.');
        }
    }
public function output ( ) { // If the view file exists if ( $ this -> hasFile ( ) ) { // Extract all view variables extract ( $ this -> getVars ( ) ) ; ob_start ( ) ; include ( $ this -> getPath ( ) . '/' . $ this -> getFile ( true ) ) ; $ html = ob_get_contents ( ) ; ob_end_clean ( ) ; return $ html ; } else { die ( 'Fatal Error: ' . $ this -> getPath ( ) . '/' . $ this -> getFile ( true ) . ' does not exist.' ) ; } }
Retrieve's the view output

@access public
@return string
Retrieve s the view output