summaryrefslogtreecommitdiff
path: root/app/Helper/Form.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Helper/Form.php')
-rw-r--r--app/Helper/Form.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/Helper/Form.php b/app/Helper/Form.php
index a37cc81a..e8664771 100644
--- a/app/Helper/Form.php
+++ b/app/Helper/Form.php
@@ -178,6 +178,23 @@ class Form extends \Core\Base
}
/**
+ * Display file field
+ *
+ * @access public
+ * @param string $name
+ * @param array $errors
+ * @param boolean $multiple
+ * @return string
+ */
+ public function file($name, array $errors = array(), $multiple = false)
+ {
+ $html = '<input type="file" name="'.$name.'" id="form-'.$name.'" '.($multiple ? 'multiple' : '').'>';
+ $html .= $this->errorList($errors, $name);
+
+ return $html;
+ }
+
+ /**
* Display a input field
*
* @access public