Render the current controller with the templates determined by {@link getViewer()}.

@param array $params

@return string
512903
public function render($params = null)
    {
        $template = $this->getViewer($this->getAction());

        // if the object is already customised (e.g. through Controller->run()), use it
        $obj = $this->getCustomisedObj() ?: $this;

        if ($params) {
            $obj = $this->customise($params);
        }

        return $template->process($obj);
    }
227010
public function render($name, $params = null, $options = null)
    {
        return $this->get($name, $options)->render($params);
    }
238241
public function render($name, array $parameters = array())
    {
        $storage = $this->load($name);
        $parameters = array_replace($this->getGlobals(), $parameters);

        $this->current = $key = sha1(serialize($storage));
        $this->parents[$key] = null;

        if (false === $content = $this->evaluate($storage, $parameters)) {
            throw new RuntimeException('The template cannot be rendered.');
        }

        if ($this->parents[$key]) {
            $content = $this->render($this->parents[$key], $parameters);
        }

        return $content;
    }
871459
protected function render($template, array $params = array(), array $options = array())
    {
        $renderer = $this->serviceLocator->get('templating');

        // Helpers
        if (isset($options['helpers'])) {
            foreach ($options['helpers'] as $helper) {
                $renderer->addHelper($helper);
            }
        }

        return $renderer->render($template, $params);
    }
925935
public function getDiv($params=array())
		{
		
			$t=new Template($this->cheminTemplates);
			$t->set_filenames((array('popup'=>'popupGeneric.tpl')));
		
		
			$width = 500;
			if(isset($params['width']) && $params['width']!='')
			{
				$width = $params['width'];
			}
			
			$height = 500;
			if(isset($params['height']) && $params['height']!='')
			{
				$height = $params['height'];
			}
			
			$left = 100;
			if(isset($params['left']) && $params['left']!='')
			{
				$left = $params['left'];
			}
			
			$top = 50;
			if(isset($params['top']) && $params['top']!='')
			{
				$top = $params['top'];
			}
			
			$titrePopup="";
			if(isset($params['titre']) && $params['titre']!='')
			{
				$titrePopup = $params['titre'];
			}
			
			$codeJsFermer="";
			if(isset($params['codeJsFermerButton']) && $params['codeJsFermerButton']!='')
			{
				$codeJsFermer = $params['codeJsFermerButton'];
			}
			
			
			
			$hiddenFields="";
			if(isset($params['hiddenFields']))
			{
				foreach($params['hiddenFields'] as $indice => $value)
				{
					$hiddenFields .= "<input type='hidden' id='".$indice."' name='".$indice."' value='".$value."'>";
				}
			}
			
			$t->assign_vars(array(
					'width'=>$width,
					'height'=>$height,
					'left'=>$left,
					'top'=> $top,
					'hiddenFields'=>$hiddenFields,
					'divIdPopup'=>'div'.$this->idPopup,
					'tdIdPopup'=>'td'.$this->idPopup,
					'iFrameIdPopup'=>'iFrame'.$this->idPopup,
					'lienSrcIFrame'=>$params['lienSrcIFrame'],
					'titrePopup'=>$titrePopup,
					'codeJsFermer'=>$codeJsFermer
			));
		
		
			ob_start();
			$t->pparse('popup');
			$html=ob_get_contents();
			ob_end_clean();
		
		
			return $html;
		}
673399
protected function render_route($route, $params = []) {

        $output = false;

        if (isset($this->routes[$route])) {

            $ret = null;

            if (\is_callable($this->routes[$route])){
                $ret = \call_user_func($this->routes[$route], $params);
            }

            if (!is_null($ret)){
                return $ret;
            }
        }

        return $output;
    }
63583
public function renderIfExistsArray($name, $params = [])
    {
        if (! $this->exists($name)) {
            return '';
        }

        return $this->renderArray($name, $params);
    }
764188
protected function render(Response $response, $template, array $params = [])
    {
        return $this->container['twig']->render($response, $template, $params);
    }
1372775
public function preview($params)
    {
        $rst = $this->_request->post($this->_url . "message/mass/preview", $params);
        return $this->_client->rst($rst);
    }
929474
public function render($data = array(), $params = array())
    {
        if ($this->controller->getTemplate() !== null) {
            foreach ($this->controller->filters as $filter) {
                $this->twig->addFilter($filter);
            }
            $this->twig->addGlobal('params', $params);
            $key = "twig" . microtime(true);
//            Debugbar::timer($key, $this->controller->getTemplate());
            $template = $this->twig->load($this->controller->getTemplate());
            $data = $template->render($this->getData($data));
//            Debugbar::stopTimer($key);
        }
        return $data;
    }
1235131
public function render($filename, array $params = array())
    {
        $this->properties = $params;

        $file = $this->scriptPath.DIRECTORY_SEPARATOR.$filename;
        if (!file_exists($file)) {
            $this->logger->error('Could not find template '.$file);

            return '';
        }
        ob_start();
        include $file;

        return ob_get_clean();
    }
1151669
protected function content(array $params = [])
    {
        $resultView = array_get($params, 'view', $this->defaultOptions['view']);
        if (!view()->exists($resultView)) {
            return false;
        }
        return $this->app->make('antares.widget')
                        ->make(array_get($params, 'pane', $this->defaultOptions['pane']))
                        ->add(array_get($params, 'name', $this->defaultOptions['name']))
                        ->attributes(array_get($params, 'attributes', $this->defaultOptions['attributes']))
                        ->title(array_get($params, 'title', $this->defaultOptions['title']))
                        ->content(view($resultView, ['container' => array_get($params, 'group')]));
    }
221137
public function get(array $params = [])
    {
        $this->getLogger()->info('Getting list of layouts ');
        $entries = [];
        $hydratedRegions = [];
        $hydratedWidgets = [];
        $response = $this->doGet($this->url, $params);
        if (isset($params['embed']))
            $embed = ($params['embed'] != null) ? explode(',', $params['embed']) : [];

        foreach ($response as $item) {
            /** @var XiboLayout $layout */
            $layout = new XiboLayout($this->getEntityProvider());
            $layout->hydrate($item);
            foreach ($layout->regions as $reg) {
                /** @var XiboRegion $region */
                $region = new XiboRegion($this->getEntityProvider());
                $region->hydrate($reg);
                if (in_array('playlists', $embed) === true) {
                    /** @var XiboPlaylist $playlist */
                    $playlist = new XiboPlaylist($this->getEntityProvider());
                    $playlist->hydrate($reg['regionPlaylist']);
                    foreach ($playlist->widgets as $widget) {
                        /** @var XiboWidget $widgetObject */
                        $widgetObject = new XiboWidget($this->getEntityProvider());
                        $widgetObject->hydrate($widget);
                        $hydratedWidgets[] = $widgetObject;
                    }
                    $playlist->widgets = $hydratedWidgets;
                    $region->regionPlaylist = $playlist;
                }
                // Add to parent object
                $hydratedRegions[] = $region;
            }
            $layout->regions = $hydratedRegions;

            $entries[] = clone $layout;
        }

        return $entries;
    }
608719
final public static function js(array $params)
    {
        return ("<script type='text/javascript' src='".
            FEnv::get("host.web.components.apps").strtolower(FEnv::get("framework.env"))."/".
            strtolower(FEnv::get("app.call"))."/".
            ((isset($params['path']))? $params['path']."." : "")."js'></script>");
    }
349475
public function render(array $parameters = []): string
    {
        /** @var Location $location */
        $location = $parameters['location'];
        /** @var Content $content */
        $content = $parameters['content'];
        /** @var Language $language */
        $language = $parameters['language'];
        $versionNo = $content->getVersionInfo()->versionNo;

        // nonpublished content should use parent location instead because location doesn't exist yet
        if (!$content->contentInfo->published && null === $content->contentInfo->mainLocationId) {
            $parentLocations = $this->locationService->loadParentLocationsForDraftContent($content->getVersionInfo());
            $location = reset($parentLocations);
            $versionNo = null;
        }

        $siteaccesses = $this->siteaccessResolver->getSiteaccessesForLocation(
            $location,
            $versionNo,
            $language->languageCode
        );

        if (empty($siteaccesses)) {
            return $this->twig->render(
                '@ezdesign/content/content_edit/component/preview_unavailable.html.twig'
            );
        }

        return '';
    }
857641
public function getTemplate($params = false)
	{
		$template = new stdClass;

		$template->template = 'system';
		$template->params   = new Registry;

		if ($params)
		{
			return $template;
		}

		return $template->template;
	}
181038
public function renderArray($name, $params = [])
    {
        return $this->view($this->generator->generate($this->callbacks, $name, $params));
    }