src/MVC/View.php
function display($data = null, $method = null)
    {
        $this->data = $data;
        if ($method === null) {
            $display_type = $this->config->get('sys', 'display');
            if ($display_type && strcasecmp($display_type, 'html') !== 0) {
                $this->set['load_layer'] = false;
                $method = trim($display_type);
            } else if ($this->action) {
                $method = $this->action;
            } else {
                $method = Router::DEFAULT_ACTION;
            }
        }

        $this->obRenderAction($data, $method);
    }
function display($data = null, $method = null)
    {
        $this->data = $data;
        if ($method === null) {
            $display_type = $this->config->get('sys', 'display');
            if ($display_type && strcasecmp($display_type, 'html') !== 0) {
                $this->set['load_layer'] = false;
                $method = trim($display_type);
            } else if ($this->action) {
                $method = $this->action;
            } else {
                $method = Router::DEFAULT_ACTION;
            }
        }

        $this->obRenderAction($data, $method);
    }
渲染模板

@param null $data
@param null $method
@throws CoreException