Пример #1
0
 /**
  * Attempts to render the `$template` with `$params` using the ViewManager. If a strategy
  * is not available then the Tonis fallback strategy is used.
  *
  * @param string $template
  * @param array $params
  * @return string
  */
 public function render($template, array $params = [])
 {
     return $this->write($this->app->getView()->render($template, $params));
 }
Пример #2
0
 public function testGetView()
 {
     $this->assertInstanceOf(View\Manager::class, $this->app->getView());
 }