render the content of an existing view : $controller/$action and set the response to the modal content
@param JsUtils $js
@param object $initialController
@param string $viewName
@param array $params The parameters to pass to the view
426753
public function renderView(JsUtils $js,$initialController,$viewName, $params=array()) {
		return $this->setContent($js->renderContent($initialController, $viewName,$params));
	}
857623
private static function errorWhenSettingNonOverridableParameter($controllerAction, $params)
    {
        $viewDataTable = self::makeTemporaryViewDataTableInstance($controllerAction, $params);
        $viewDataTable->throwWhenSettingNonOverridableParameter($params);
    }
54310
public function render($viewPath, array $params = [])
    {
        ob_start();
        ob_implicit_flush(false);
        $this->params = $params;
        extract(array_merge($params, $this->getBlocks()), EXTR_OVERWRITE);
        require(file_exists($viewPath) ? $viewPath : '../'.$viewPath);

        return ob_get_clean();
    }
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);
    }
344054
public function handleAction($action, $actionParams)
    {
        $this->setView($action);
        $response = parent::handleAction($action, $actionParams);

        if ($response instanceof Response) {
            return $response;
        }

        if (is_string($response)) {
            $this->controllerView->content = $response;
        } elseif (isset($this->view)) {
            $this->controllerView->content = $this->view->render();
        }

        $this->response->setContent($this->controllerView->render());

        return $this->response;
    }
1056814
protected function renderResponse($view, array $parameters = array(), Response $response = null)
    {
        return $this->get('templating')->renderResponse($view, $parameters, $response);
    }
495288
public function onKernelView(GetResponseForControllerResultEvent $event)
    {
        $request = $event->getRequest();

        try {
            $viewName = $this->viewNameDeducer->deduce($request);
        }
        catch (NotInBundleException $e) {
            return;
        }
        catch (NoControllerNameException $e) {
            return;
        }
        $viewParams = $event->getControllerResult();
        if (!is_array($viewParams) && !is_null($viewParams)) {
            return;
        }

        if ($this->templating->exists($viewName)) {
            $response = $this->templating->renderResponse($viewName, $viewParams ?: array());
            $event->setResponse($response);
            return;
        }

        $this->missingViewHandler->handleMissingView($event, $viewName, $viewParams ?: array());
    }
8849
@RenderMapping
    public String initializeView(
            WebRequest webRequest,
            PortletRequest portletRequest,
            Model model,
            @RequestParam(required = false) String initialFilter) {
        this.setUpInitialView(webRequest, portletRequest, model, initialFilter);
        return "jsp/Marketplace/portlet/view";
    }
1187979
public function renderResponse($view, array $parameters = array(), Response $response = null)
    {
        return $this->getTemplating()->renderResponse($view, $parameters, $response);
    }
350799
public function render($viewFile, $parameters = [], Response $response = null)
    {
        if (null === $response) {
            $response = new Response();
        }

        return $response->setContent($this->getContent($viewFile, $parameters));
    }
74455
public function compile(JsUtils $js=NULL, &$view=NULL) {
		if (isset($js)) {
			$this->formElementsPrefix=$js->config()->getVar("formElementsPrefix");
			foreach ( $this->futureElements as $futureElement ) {
				$futureElementValue=$this->getPrefix($futureElement);
				$futureElementValues=explode("_", $futureElementValue);
				switch($futureElementValues [0]) {
					case "input":
						$control=new HtmlInput($futureElement);
						$control->setClass("form-control");
						$control->setLabel($this->getPart($futureElement));
						break;
					case "checkbox":
						$control=new HtmlInputCheckbox($futureElement);
						$control->setLabel($this->getPart($futureElement), false);
						break;
					case "radio":
						$name=$this->getPart($futureElement);
						$label=$this->getPart($futureElement, 2);
						$control=new HtmlInputRadio($futureElement);
						$control->setProperty("name", strtolower($name));
						$control->setLabel($label, false);
						break;
					case "select":
						$control=new HtmlSelect($futureElement,"");
						$control->setProperty("size", $futureElementValues [1]);
						$control->setClass("form-control");
						break;
					default:
						$control=new HtmlInput($futureElement);
						$control->setClass("form-control");
						$control->setLabel($this->getPart($futureElement));
						break;
				}
				$this->addElement($control);
			}
		}
		foreach ( $this->formGroups as $group ) {
			$this->addContent($group);
		}
		return parent::compile($js, $view);
	}
657509
public function render($view, array $parameters = [], Response $response = null)
    {
        return $this->templating->renderResponse($view, $parameters, $response);
    }
1310208
protected function renderControllers($controllers)
    {
        $js = [];
        $view = $this->getView();
        foreach ($controllers as $name => $injection) {
            $injection = array_unique(array_merge($this->injection, (array) $injection));
            $injectionStr = rtrim(Json::htmlEncode($injection), ']');
            $injectionVar = implode(", ", $injection);
            $function = implode("\n", ArrayHelper::getValue($view->js, $name, []));
            $js[] = "module.controller('$name',{$injectionStr},\nfunction($injectionVar){\n{$function}\n}]);";
        }
        return implode("\n", $js);
    }
340409
public function renderResponse($view, $params = [])
    {
        /** @var \DevGroup\AdminUtils\controllers\BaseController $context */
        $context = $this instanceof Action ? $this->controller : $this;
        if (Yii::$app->request->isAjax === true) {
            Yii::$app->response->format = Response::FORMAT_JSON;

            $content = $context->renderAjax($view, $params);
            return new AjaxResponse($content, false, Yii::$app->session->getAllFlashes(true));
        } else {
            return $context->render($view, $params);
        }
    }
536577
public function compile(JsUtils $js=NULL, &$view=NULL) {
		return $this->element->compile($js, $view);
	}
743601
final public function url($module, $controller = null, $action = null, array $params = array(), $hash = null) {
        return $this->view->url($module, $controller, $action, $params, $hash);
    }
1318773
public function initialize()
    {
        /**
         * Attaches event fired before view render
         * It allows to use $this->view->partial inside of action method before action view is being rendered
         */
        $this->eventsManager->attach('view:beforeRenderView', function($event, $view, $engineViewPath) {
            if ($view instanceof View) {
                $view->setControllerViewPath($this->router->getControllerName());
            }
        });
    }