public function widgets() { session_start(); $isLoggedIn = Authentification::isLoggedIn(); $view->isLoggedIn = $isLoggedIn; if (!$view->isLoggedIn) { $view = new XView(No_Access_View); $view->title = 'Access denied | Make'; $this->__common($view); return; } $view = new XView(Widgets_Config_View); $view->title = 'Widgets'; session_start(); if ($_POST['submit_widget_update']) { WidgetModel::update('sidebar', $_POST['widgets']); header('Location:' . SERVER_ROOT_URL . '/index'); } $this->__common($view); }