src/Web/ErrorHandler.php
public function renderFile($_file_, $_params_)
    {
        $_params_['handler'] = $this;
        if ($this->exception instanceof ErrorException || !$this->app->has('view')) {
            ob_start();
            ob_implicit_flush(false);
            extract($_params_, EXTR_OVERWRITE);
            require Reaction::getAlias($_file_);

            return ob_get_clean();
        }

        return $this->app->view->renderFile($_file_, $_params_, $this);
    }
public function renderFile($_file_, $_params_)
    {
        $_params_['handler'] = $this;
        if ($this->exception instanceof ErrorException || !$this->app->has('view')) {
            ob_start();
            ob_implicit_flush(false);
            extract($_params_, EXTR_OVERWRITE);
            require Reaction::getAlias($_file_);

            return ob_get_clean();
        }

        return $this->app->view->renderFile($_file_, $_params_, $this);
    }
Renders a view file as a PHP script.
@param string $_file_ the view file.
@param array $_params_ the parameters (name-value pairs) that will be extracted and made available in the view file.
@return string the rendering result