public function __construct($opts = array()){
$this->options = array_merge($this->defaults, $opts);
$config = array(
"tpl_dir" => $_SERVER["DOCUMENT_ROOT"] . "/views/",
"cache_dir" => $_SERVER["DOCUMENT_ROOT"] . "/views-cache/",
"debug" => false
);
Tpl::configure($config);
$this->tpl = new Tpl();
$this->setData($this->options["data"]);
$this->tpl->draw("header");
}