Render

Renders the view

@param string $view
@param array $params
@param bool $output
@return void
778000
public function render($view, $params = array(), $output = false) {
        if (filter_var(get_config('debug'), FILTER_VALIDATE_BOOLEAN)) {
            $debugbarRenderer = Debugger::runDebuger($view);
            $this->share(['debugbarRenderer' => $debugbarRenderer]);
        }

        new Qt_View(RouteController::$currentRoute);
        Qt_View::render($view, $params, $output, $this->sharedData);
    }
920611
public function renderResponse($view, array $parameters = array(), Response $response = null)
    {
        if (null === $response) {
            $response = new Response();
        }

        $response->setContent($this->render($view, $parameters));

        return $response;
    }
256708
public function render($view = null, $data = array())
    {
        if (is_null($view)) {
            $view = static::$defaultSimpleView;
        }

        $data = array_merge($data, array(
            'paginator' => $this,
        ));

        return new HtmlString(
            static::viewFactory()->make($view, $data)->render()
        );
    }
996642
public function render($view, array $parameters = array(), Response $response = null)
    {
        if ($response === null) {
            $response = new Response();
        }

        $json = Encoder::encodeFromFile($this->getPath($view), $parameters);
        $response->setContent($json);

        return $response;
    }
490016
protected function _render($params) {
		foreach ($params as $name => $param) {
			if ($name === 'run' || empty($param['name'])) {
				continue;
			}
			$usage = (!empty($param['usage'])) ? trim($param['usage'], ' []') : $param['name'];
			$this->out($this->_pad($usage), 'option');

			if ($param['description']) {
				$this->out($this->_pad($param['description'], 2));
			}
			$this->nl();
		}
	}
791964
public function render($view, array $parameters = array(), $flag = false)
    {
        $content = $this->get('kernel.dispatch')->dispatch('handle.tpl')->render($view, $parameters);
        
        return $flag ? $content : $this->responseHtml($content);
    }
788096
public function view($view, $data = [])
    {
        $viewPath = self::$instance->app->findView($view);
        echo self::$instance->renderView($viewPath, $data);
    }
973596
public function outputView(array $data, $view = null)
    {
        if ($this->controller->requestType !== Macro::HTTP_REQUEST) {
            throw new Exception('$this->outputView not support '. $this->controller->requestType);
        }

        $this->setContentType('text/html; charset=UTF-8');
        if (empty($view)) {
            $view = str_replace('\\', '/', $this->getContext()->getControllerName()) . '/' .
                str_replace($this->getConfig()->get('http.method_prefix', 'action'), '', $this->getContext()->getActionName());
        }

        $responseBody = null;
        $found = false;
        $engine = getInstance()->templateEngine;
        $viewResolvePaths = getInstance()->viewResolvePaths;

        foreach ($viewResolvePaths as $basePath) {
            $template = $engine->setDirectory($basePath)->make($view);
            if (!$template->exists()) {
                continue;
            }
            $responseBody = $template->render($data);
            $found = true;
            break;
        }
        if (!$found) {
            throw new Exception(sprintf('A template named %s was not found in any folder, please check again', $view));
        }
        $this->end($responseBody);
    }
153390
public final function render(OutputBuffer $out, ViewModelInterface $model, array $params = [])
	{
		$this->context->bind($model);
		$this->context->set('@view', $this);
		
		foreach($params as $k => $v)
		{
			$this->context->set($k, $v);
		}
		
		try
		{
			if($this->getParent() === NULL)
			{
				$this->renderMain($out);
			}
			else
			{
				$this->parent->renderMain($out);
			}

			return $out;
		}
		finally
		{
			$this->parent = false;
			$this->context->unbind();
		}
	}
409228
public function render($view, $data = [], $mergeData = [])
    {
        return $this->make($view, $this->parseData($data), $mergeData)->render();
    }
1270107
public function render($view, $params = array(), $output = false, $sharedData = array()) {
        self::$view = self::renderFile($view, $params, $sharedData);

        if ($output) {
            echo self::$view;
        }

        if (!empty(self::$layout)) {
            echo self::renderLayout($sharedData);

            if (isset($sharedData['debugbarRenderer']) && !is_null($sharedData['debugbarRenderer'])) {
                $debugbarRenderer = $sharedData['debugbarRenderer'];
                echo $debugbarRenderer->renderHead();
                echo $debugbarRenderer->render();
            }
        }
    }
1168180
public function render(OutputInterface $output, ResultCollection $results)
    {
        $output->writeln($this->getHeader());

        foreach ($results->toArray() as $result) {
            $output->writeln(implode(';', [ '"'.$result[0].'"', $result[1], $result[2], $result[3] ]));
        };
    }
601066
public function render($view, array $data = [])
    {
        $this->getBody()->write($this->renderer->render($view, $data));
        return $this;
    }
1090503
public function render(string $view = null, array $params = null): \Illuminate\Contracts\Support\Renderable
    {
        $view = $view ? $view : 'column.treeControl';
        $params = $params ? $params : $this->toArray();

        return GridView::view($view, $params);
    }
658187
private function renderFile($view, $parmas = array(), $sharedData = array()) {
        $templateEngine = Config::get('template_engine');

        if ($templateEngine) {
            $engineName = key($templateEngine);
            $engineConfigs = $templateEngine[$engineName];

            return HookManager::call('templateRenderer', [
                        'configs' => $engineConfigs,
                        'currentModule' => self::$currentRoute['module'],
                        'view' => $view,
                        'params' => $parmas,
                        'sharedData' => $sharedData
            ]);
        } else {
            return self::defaultRenderer($view, $parmas, $sharedData);
        }
    }
588584
public function render($view, array $data = [])
    {
        // Get Body-Template
        $template = $this->getTemplate($view);

        // extend with default data
        $data += $this->data;

        // set tags
        foreach ($data as $name => $value) {
            $template->tag($name, $value);
        }

        // Render Page
        return $this->applyFunctions(get_maintemplate((string)$template));
    }
528432
protected function render($view,$data)
	{
		$data['version']=$this->getVersionInfo();
		$data['time']=time();
		$data['admin']=$this->adminInfo;
		include($this->getViewFile($view,$data['code']));
	}