/** * Render view file * * @param string $ps_view path to view file * @param bool $pb_dont_add_content_to_response * @param bool $pb_dont_replace_tags * @return mixed|null|string */ public function &render($ps_view, $pb_dont_add_content_to_response = false, $pb_dont_replace_tags = false) { if (!$this->opo_view) { $this->initView(); } $vs_content = $this->opo_view->render($ps_view, $pb_dont_replace_tags); if ($this->opo_view->numErrors() > 0) { $this->errors = $this->opo_view->errors; } if (!$pb_dont_add_content_to_response) { $this->opo_response->addContent($vs_content, 'view'); } return $vs_content; }