npm install node-mysql
<?php
class Template
{
private function output()
{
echo $this->template->render($this->vars);
}
public function render($tmpl, $vars = array())
{
global $twig;
$this->vars = $vars;
$this->tmpl = $tmpl;
$this->template = $twig->loadTemplate($this->tmpl.'.html');
$this->output();
}
}
?>