public function fetch($template) { ob_start(); $this->display($template); $contents = ob_get_clean(); return $contents; }