Exemple #1
0
 public function upload()
 {
     $profiler = new Profiler();
     $form = new Formation();
     $form->input('hello')->label(YES);
     $form->upload('file', YES)->label(YES)->rules('required|size[200KB]|allow[jpg,png,gif]');
     $form->submit('Upload');
     if ($form->validate()) {
         echo Eight::debug($form->as_array());
     }
     echo $form->render();
 }