コード例 #1
0
ファイル: AppTest.php プロジェクト: spiffyjr/tonis
 public function testGetViewManager()
 {
     $this->assertInstanceOf(View\Manager::class, $this->app->getViewManager());
 }
コード例 #2
0
ファイル: Response.php プロジェクト: spiffyjr/tonis
 /**
  * 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->getViewManager()->render($template, $params));
 }