예제 #1
0
 /**
  * @expectedException Studiow\PHPTemplate\Exception\FilesNotFoundException
  */
 public function test_failure_files()
 {
     $engine = new Engine(__DIR__ . "/res");
     $template = $engine->find(["none_existing.php", "none_exiting_2.php"]);
     $template->render();
 }
예제 #2
0
 public function get($filename, $data = [])
 {
     return $this->engine->get($filename, array_merge($this->data, $data));
 }