smarty = $smarty; } private function getSmarty() { return $this->smarty; } public function __constructor($dsn) { $this->setSmarty(new Smarty()); } public function displayPage() { $this->getSmarty()->display('header.tpl'); } } ?>