src/Common/Bootstrap.php
public function createView($file = null)
    {
        $view = new View($this->getTemplatePath() . '/app/views/');
        if ($file) {
            $view->setFile($file);
        }
        return $view;
    }
public function createView($file = null)
    {
        $view = new View($this->getTemplatePath() . '/app/views/');
        if ($file) {
            $view->setFile($file);
        }
        return $view;
    }
public function createView ( $ file = null ) { $ view = new View ( $ this -> getTemplatePath ( ) . '/app/views/' ) ; if ( $ file ) { $ view -> setFile ( $ file ) ; } return $ view ; }
Create a new View instance

@access public
@param string $file (default : null)
@return \WPMVC\Models\View
Create a new View instance