src/foundation/controller/Controller.php
public function render($view, $params = array()) {
        $viewPath = $this->viewPath;
        $viewPath = rtrim($viewPath, '/').'/';
        extract($params);
        if (is_file($view)) {
            require_once($view);
        } else if (is_file($viewPath.str_replace(':', '/', $view))) {
            require_once($viewPath.str_replace(':', '/', $view));
        } else {
            echo $view;
        }
    }
public function render($view, $params = array()) {
        $viewPath = $this->viewPath;
        $viewPath = rtrim($viewPath, '/').'/';
        extract($params);
        if (is_file($view)) {
            require_once($view);
        } else if (is_file($viewPath.str_replace(':', '/', $view))) {
            require_once($viewPath.str_replace(':', '/', $view));
        } else {
            echo $view;
        }
    }
public function render ( $ view , $ params = array ( ) ) { $ viewPath = $ this -> viewPath ; $ viewPath = rtrim ( $ viewPath , '/' ) . '/' ; extract ( $ params ) ; if ( is_file ( $ view ) ) { require_once ( $ view ) ; } else if ( is_file ( $ viewPath . str_replace ( ':' , '/' , $ view ) ) ) { require_once ( $ viewPath . str_replace ( ':' , '/' , $ view ) ) ; } else { echo $ view ; } }
Render the content of view file or text

@param string View path of view file or text
@param array View parameters

@return string
Render the content of view file or text