$value) { $GLOBALS[$key] = $value; } extract($data); $__viewsDir = MAIN_HOME . 'public/Views/' . $this->scope . '/'; // 1. Header renderUnifiedLayoutHeader($this->scope); // 2. View content $__viewFile = $__viewsDir . $view . '.php'; if (file_exists($__viewFile)) { require $__viewFile; } // 3. Footer (player footer.php содержит page-specific JS) renderUnifiedLayoutFooter($this->scope); } /** * Редирект на player home. */ protected function goPlayerHome() { header('Location: index'); exit; } }