Set a view to render.

@param string $view
@param array  $variables
7330
public function setView($view, $variables = [])
    {
        if (!empty($variables)) {
            $this->with($variables);
        }

        $this->view = $view;
    }
1004757
public function setViews(array $views)
    {
        $this->views = array();

        foreach ($views as $view) {
            $this->addView($view);
        }
    }
1372958
public function setView(Phtml $_view)
    {
        $this->_view = $_view;

        $this->_layout->addPartial('content', $this->_view);
    }
528432
protected function render($view,$data)
	{
		$data['version']=$this->getVersionInfo();
		$data['time']=time();
		$data['admin']=$this->adminInfo;
		include($this->getViewFile($view,$data['code']));
	}
77634
public function render($view, array $data = null)
    {
        if (!headers_sent()) {
            foreach ($this->_headers as $header) {
                header($header, true);
            }
        }

        if ($data) {

            if (!empty($this->vars)) {
                // Overlay data config
                $this->vars = array_replace($this->vars, $data);
            } else {
                $this->vars = $data;
            }

        }

        $this->view = $view;
        $path = '../App/' . $this->templatesDir . $this->template . '.phtml';

        if (file_exists($path)) {
            require $path;
        } else {
            die('No template file ' . $this->template . ' present in template directory.');
        }

        return true;
    }
955569
public function addView(string $view, array $data): void
    {
        $num = count($this->views) + 1;
        $key = '#' . $num . ' ' . $view;

        $this->views[$key] = $this->getDataFormatter()->formatVar($data);
    }
366710
protected function mergeVariables(string $view, array $variables): array
	{
		return $variables + $this->getAutoAssignVariables($view) + $this->globalVariables;
	}
1013510
public static function setView($view)
    {
        if (count(self::$execContexts)) {
            self::$execContexts[count(self::$execContexts) - 1]['view'] = $view;
        }
    }
868598
public function setView($view)
	{
		$this->view = $view;

		// construct the view if needed
		if ( ! $this->view instanceof View)
		{
			$this->view = $this->viewManager->forge($this->view);
		}
	}
1230387
public function render($view, $data = array())
    {
        $data = apply_filters('Municipio/blade/data', $data);

        $blade = new Blade($this->viewPaths, $this->cachePath);
        echo $blade->view()->make($view, $data)->render();
    }
498579
protected function createDisplayResponse($template, array $variables)
    {
        return $this->getComponentResponseFactory()
            ->createComponentResponse()
                ->setContent(
                    new DisplayModel($template, $variables)
                );
    }
904647
public function setView($view)
    {
        $view   = parent::setView($view);
        $format = $this->getRequest()->getFormat();

        if ($view instanceof KObjectIdentifier && $view->getPackage() != 'activities' && $format  !== 'html')
        {
            $manager = $this->getObject('manager');

            // Set the view identifier as an alias of the component view.
            if (!$manager->getClass($view, false))
            {
                $identifier = $view->toArray();
                $identifier['package'] = 'activities';
                unset($identifier['domain']);

                $manager->registerAlias($identifier, $view);
            }
        }

        return $view;
    }
1089828
protected function render($view, array $data = [])
    {
        // Extract variables.
        extract($data);

        // Start buffering.
        ob_start();

        // Load view file (root location is declared in viewPath var).
        include $this->container->get('config')['viewsPath'] . '/' . $view . '.php';

        // Get buffered content
        $body = ob_get_contents();
        ob_end_clean();

        // Make response and add body to it
        $response = new Response();
        $response->writeBody($body);
        return $response;
    }
83900
public function setVariables($variables = [])
    {
        foreach ($variables as $variable => $value) {
            $this->set($variable, $value);
        }
    }
788096
public function view($view, $data = [])
    {
        $viewPath = self::$instance->app->findView($view);
        echo self::$instance->renderView($viewPath, $data);
    }
1334448
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;
        }
    }
162732
private function view(View $view): void
    {
        $this->group($view->getName(), false);
        $this->presentationModel($view->getPresentationModel(), 'presentationModel');
        $this->groupEnd();
    }