framework/basic/View.php
public function render($viewPath, array $params = [])
    {
        ob_start();
        ob_implicit_flush(false);
        $this->params = $params;
        extract(array_merge($params, $this->getBlocks()), EXTR_OVERWRITE);
        require(file_exists($viewPath) ? $viewPath : '../'.$viewPath);

        return ob_get_clean();
    }
public function render($viewPath, array $params = [])
    {
        ob_start();
        ob_implicit_flush(false);
        $this->params = $params;
        extract(array_merge($params, $this->getBlocks()), EXTR_OVERWRITE);
        require(file_exists($viewPath) ? $viewPath : '../'.$viewPath);

        return ob_get_clean();
    }
public function render ( $ viewPath , array $ params = [ ] ) { ob_start ( ) ; ob_implicit_flush ( false ) ; $ this -> params = $ params ; extract ( array_merge ( $ params , $ this -> getBlocks ( ) ) , EXTR_OVERWRITE ) ; require ( file_exists ( $ viewPath ) ? $ viewPath : '../' . $ viewPath ) ; return ob_get_clean ( ) ; }
Render view file

@param string $viewPath
@param array $params
@return mixed
Render view file