Beispiel #1
0
 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/');
 }
Beispiel #2
0
 public function getModelPage()
 {
     if (!class_exists('ModelPage')) {
         require_once CORE_ROOT . MODELS . DIRECTORY_SEPARATOR . 'ModelPage.php';
     }
     if (!is_object($this->page)) {
         $this->page = ModelPage::getInstance();
     }
 }