/** * */ public function &htmlBySchema(&$schema, $template) { $tmpfname = tempnam("/tmp", "template"); $handle = fopen($tmpfname, "w"); fwrite($handle, $template); fclose($handle); $s = new \Savant3(array('template' => $tmpfname, 'template_path' => '')); $s->assign('schema', $schema); $html = $s->getOutput(); unlink($tmpfname); return $html; }