template = $template; $this->model = (object)$viewModel->getData(); } /** * @return bool|string */ public function render() { if($this->renderedContent) return $this->renderedContent; ob_start(); include_once($this->template->getPHTMLPath()); $this->renderedContent = ob_get_clean(); return $this->renderedContent; } }