示例#1
0
文件: ViewPage.php 项目: olif-fm/olif
 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/');
 }
示例#2
0
 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();
     }
 }