Example #1
0
 public function ver_all_form()
 {
     $user = Session::get_user();
     if ($user != null && $user->getVerified()) {
         $service = Service::getInstance();
         $forms = $service->get_all_form($this);
         if ($forms) {
             return parent::render("index.html", array('content' => parent::render('all_form.html', array('forms' => $forms))));
         } else {
             parent::response_notfound();
         }
     } else {
         header("Location: ?ID=login");
         exit(0);
     }
 }