コード例 #1
0
 /**
  * the index page of the user homes admin
  */
 public function index()
 {
     $form = basket_plus::get_configure_form();
     if (request::method() == "post") {
         access::verify_csrf();
         if ($form->validate()) {
             basket_plus::extractForm($form);
             message::success(t("Basket Module Configured!"));
         }
     } else {
         basket_plus::populateForm($form);
     }
     $view = new Admin_View("admin.html");
     $view->content = new View("admin_configure.html");
     $view->content->form = $form;
     print $view;
 }