public function getHtmlPathFile()
{
$file = $this->getHtmlPath() . $this->getHtmlFile();
if (realpath($file) === false) {
throw new Exception('Path must be absolute ("' . htmlspecialchars($file, ENT_QUOTES) . '")');
}
if (file_exists($file) === false) {
throw new Exception('HTML file "' . htmlspecialchars($file, ENT_QUOTES) . '" was not found');
}
return $file;
}