/**
  * the index page of the user homes admin
  */
 public function index()
 {
     $form = basket::get_configure_form();
     if (request::method() == "post") {
         access::verify_csrf();
         if ($form->validate()) {
             basket::extractForm($form);
             message::success(t("Basket Module Configured!"));
         }
     } else {
         basket::populateForm($form);
     }
     $view = new Admin_View("admin.html");
     $view->content = new View("admin_configure.html");
     $view->content->form = $form;
     print $view;
 }
 /**
  * the index page of the user homes admin
  */
 public function index()
 {
     $form = basket::get_configure_form();
     if (request::method() == "post") {
         // @todo move the "save" part of this into a separate controller function
         access::verify_csrf();
         if ($form->validate()) {
             basket::extractForm($form);
             message::success(t("Basket Module Configured!"));
             //url::redirect("admin/recaptcha");
         }
     } else {
         basket::populateForm($form);
     }
     $view = new Admin_View("admin.html");
     $view->content = new View("admin_configure.html");
     $view->content->form = $form;
     //$view->content->products = ORM::factory("product")->orderby("name")->find_all();
     print $view;
 }