public function __construct() { $this->controller = ControllerPage::getInstance(); $this->model = ModelPage::getInstance(); require_once CORE_ROOT . THREEPARTY_REQ . "template" . DIRECTORY_SEPARATOR . "Template.php"; $this->template = new \Template(WEBSITE_ROOT . 'templates' . DIRECTORY_SEPARATOR, WEBSITE_ROOT . 'cache/'); }
protected function getControllerPage() { if (!class_exists('ControllerPage')) { require_once CORE_ROOT . CONTROLLERS . DIRECTORY_SEPARATOR . 'ControllerPage.php'; } if (!is_object($this->page)) { $this->page = ControllerPage::getInstance(); } }