Beispiel #1
0
 function add()
 {
     DB::escapePost();
     if ($_POST) {
         $id = Votes::add();
         $this->redirect('/votes/edit/' . $id . '/');
     } else {
         View::plugin('add');
     }
 }