public function index() { // WIDGET SETTINGS if (get_request_method() == "POST" && isset($_POST["widget_action"]) && isset($_POST["widget_secure_token"])) { if (DashboardWidgets::setWidgetSettings($_POST["widget_action"], $_POST)) { redirect(get_url("plugins/dashboard")); die; } } // RENDER DASHBOARD ob_start(); $this->renderDashboard(); $this->content = ob_get_contents(); ob_end_clean(); // OUTPUT $render = new View("../layouts/backend", array("content_for_layout" => $this->content)); $output = $render->render(); print $output; }