<?php
namespace App\Mvc; abstract class View_Popup_GeneralAbstract extends ViewAbstract { protected $renderingTemplate=SMARTY_LAYOUT_MAIN_POPUP; protected bool $closePopup = false; public function setClosePopup(bool $closePopup) :void { $this->closePopup = $closePopup; } public function getClosePopup() :bool { return $this->closePopup; } public function getTemplatePath() { return $this->renderingTemplate; } public function render() { $this->setOutputVar('closePopup', $this->closePopup); return $this->renderWithCustomTemplate($this->getTemplatePath(), $this->messagesCollector); } } 