function __construct() { $currentUrl = fvRoute::getInstance()->getModuleName(); list($p) = (array) PageManager::getInstance()->getByPageUrl($currentUrl); if (is_object($p)) { $this->_pageInstance = $p; } else { fvDispatcher::redirect(fvSite::$fvConfig->get('page_404', 0, 404)); } $this->_domInstance = new DOMDocument(); if (!$this->_domInstance->loadXML($this->_pageInstance->getPageContent())) { fvDispatcher::redirect(fvSite::$fvConfig->get('page_error', 0, 302)); } $this->setMeta($this->_pageInstance->getMeta()); fvSite::$Template->assign("Lang", fvLang::getInstance()); parent::__construct("main.tpl"); }
public function __construct() { fvSite::$Template->assign("Lang", fvLang::getInstance()); parent::__construct("main.tpl"); }