public function render() { $template = Config::viewsPath() . str_replace(".", DIRECTORY_SEPARATOR, $this->template) . ".template.php"; $data = $this->data; ob_start(); if (is_file($template)) { include $template; } $content = ob_get_clean(); return $content; }