Log an exception/throwable

@param string  $view
@param mixed[] $data

@return void
16748
public static function addView(string $view, array $data): void
    {
        if (self::$debugbar instanceof StandardDebugBar) {
            $collector = self::$debugbar->getCollector('views');

            if ($collector instanceof ViewCollector) {
                $collector->addView($view, $data);
            }
        }
    }
259011
public function make($view, $data = [])
    {
        try {
            return $this->view->make($view, $data)->render();
        } catch (\InvalidArgumentException $e) {
            throw new ViewNotFoundException("No file found at '{$view}'");
        }
    }
619268
public function configureView(ViewDataTable $view)
    {
        if (!empty($this->dimension)) {
            $view->config->addTranslations(array('label' => $this->dimension->getName()));
        }

        // $view->config->show_search = false;
        // $view->requestConfig->filter_sort_column = 'nb_visits';
        // $view->requestConfig->filter_limit = 10';

        $view->config->columns_to_display = array_merge(array('label'), $this->metrics);
    }
637024
public function addView($view, $data = null)
    {
        if(!is_object($view))
            $view = new \erdiko\core\View($view, $data);
        if($data != null)
            $view->setData($data);
        
        $this->appendContent($view->toHtml());
    }
279974
protected function compile(string $view): void
	{
		(new Compiler($this->fileSystem, $this->cachePath, $view))->compile();
	}
999111
public function loadView($view, $data = array(), $mergeData = array())
    {
        $this->view = View::make($view, $data, $mergeData);
        return parent::loadView($view, $data, $mergeData);
    }
35093
protected function view($view, $data = null, $module = null)
    {
        if ($data === null || !is_array($data)) {
            $data = $this->dis;
        }
        if ($module === null) {
            if (property_exists($this, 'module') && $this->module) {
                return view($this->module . '::' . $view, $data);
            }
        }
        return view($view, $data);
    }
791953
public static function make( $view, $data = [], $mergeData = [] )
	{
		return static::__do( __FUNCTION__, args_with_keys( func_get_args(), __CLASS__, __FUNCTION__ ) );
	}
949037
public function render($view, array $data = null)
	{
		// Sanitize variables already in the template.
		foreach (get_object_vars($this) as $key => $value) {
			if (!in_array($key, $this->unguarded)) {
				$this->$key = $this->scrub($value);
			}
		}

		// Also sanitize any variables we are passing in to the template
		$data = $this->scrub($data);

		return parent::render($view, $data);
	}
572719
public function render($view, array $data = [])
    {
        return $this->blade->share('errors', $this->session->pull('errors'))->render($view, $data);
    }
572221
private function render(string $view, $data = []) : Mail
  {
    $body = array(
      'body' => $this->body,
      'subject' => $this->subject
    );

    if ($this->body != null) {
      $data = array_merge($data, $body);
    }

    $this->outputdata = View::make($this->viewLocation, $data, true);
    return $this;
  }
749360
public function render(string $template = "", array $data = []): string
    {
        try {
            if ($template) {
                $filename = dirname(__DIR__, 4)
                          . DIRECTORY_SEPARATOR
                          .  "layout"
                          . DIRECTORY_SEPARATOR
                          . str_replace("..", "", $template);
                if (!is_file($filename)) {
                    throw new Exception ($filename . " is not a file");
                }
                $this->__construct();
                extract($data);
                ob_start();
                include $filename;
                $this->obContents = ob_get_contents();
                ob_end_clean();
            }
            return $this->obContents ? $this->obContents : parent::render();
        } catch (Throwable $e) {
            throw new ViewException(
                "Can't render " . static::class . " " . $e->getMessage()
            );
        }
    }
980246
public function composeError($view, array $data = [], int $status = 404): Response
    {
        $engine = $this->view;
        $file = "errors.{$status}";
        $view = $engine->exists($file) ? $engine->make($file, $data) : "{$status} Error";

        return new Response($view, $status);
    }
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()
        );
    }
18080
public function view($view, $data = [], $mergeData = [])
    {
        return $this->response(View::make($view, $data, $mergeData));
    }
138579
public static function wrapExceptionView( $view )
	{
		$page	= new UI_HTML_PageFrame();
		$page->setTitle( 'Exception' );
		$page->addJavaScript( '//cdn.ceusmedia.de/js/jquery/1.4.2.min.js' );
		$page->addJavaScript( '//cdn.ceusmedia.de/js/jquery/cmExceptionView/0.1.js' );
		$page->addStylesheet( '//cdn.ceusmedia.de/js/jquery/cmExceptionView/0.1.css' );
		$page->addStylesheet( '//cdn.ceusmedia.de/css/bootstrap.min.css' );
		$options	= array( 'foldTraces' => TRUE );
		$script		= UI_HTML_JQuery::buildPluginCall( 'cmExceptionView', 'dl.exception', $options );
		$page->addHead( UI_HTML_Tag::create( 'script', $script ) );
		$page->addBody( UI_HTML_Tag::create( 'h2', 'Error' ).$view );
		return $page->build( array( 'style' => 'margin: 1em' ) );
	}
1172417
public static function render($view, $data = array()){

        if( is_array($view) ){

            foreach( $view as $item ){
                self::render($item, $data);
            }

            return;
        }

        echo self::get($view, $data);
    }