예제 #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));
 }