Beispiel #1
0
 /**
  * Create template engine object.
  *
  * @param string $template Path to content template file
  */
 public function __construct($template)
 {
     $this->_content = $template;
     $templateEngine = Days_Config::load()->get('view/engine', 'php');
     $this->_view = Days_View::factory($templateEngine);
 }
Beispiel #2
0
 /**
  * @covers Day_View::factory
  */
 public function testResultClassName()
 {
     $ref = new Days_View_Engine();
     $factory_ref = Days_View::factory('engine');
     $this->assertTrue($ref == $factory_ref);
 }