Example #1
0
 /**
  * Create the template instance
  * @return Template
  */
 public function createTemplate()
 {
     $template = new Template($this->getWrapperDirectory() . '/' . $this->name . '.php');
     $template->setCallback('urlFor', [$this->application, 'urlFor']);
     $template->setCallback('urlForDefault', [$this->application, 'urlForDefault']);
     return $template;
 }