summaryrefslogtreecommitdiffstats
path: root/application/forms
diff options
context:
space:
mode:
authorSimon2011-03-02 16:18:07 +0100
committerSimon2011-03-02 16:18:07 +0100
commitc6fad905aaa3889c943e93abcff5e50d94340277 (patch)
tree9d75a842e70d5ddce1ce348df9bf58bcb1e7cf53 /application/forms
parentfilter controller - index action geƤndert (diff)
downloadpbs2-c6fad905aaa3889c943e93abcff5e50d94340277.tar.gz
pbs2-c6fad905aaa3889c943e93abcff5e50d94340277.tar.xz
pbs2-c6fad905aaa3889c943e93abcff5e50d94340277.zip
filter geupdated && mein kleines todo
Diffstat (limited to 'application/forms')
-rw-r--r--application/forms/FilterAdd.php28
-rw-r--r--application/forms/FilterCreate.php13
2 files changed, 28 insertions, 13 deletions
diff --git a/application/forms/FilterAdd.php b/application/forms/FilterAdd.php
new file mode 100644
index 0000000..969f07b
--- /dev/null
+++ b/application/forms/FilterAdd.php
@@ -0,0 +1,28 @@
+<?php
+
+class Application_Form_FilterAdd extends Zend_Form
+{
+
+ public function init()
+ {
+ $this->setName("Register");
+ $this->setMethod('post');
+
+ $this->addElement('text', 'title', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 50)),
+ ),
+ 'required' => true,
+ 'label' => 'Title:',
+ ));
+ $this->addElement('submit', 'register', array(
+ 'required' => false,
+ 'ignore' => true,
+ 'label' => 'Login',
+ ));
+ }
+
+
+}
+
diff --git a/application/forms/FilterCreate.php b/application/forms/FilterCreate.php
deleted file mode 100644
index e239b94..0000000
--- a/application/forms/FilterCreate.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-class Application_Form_FilterCreate extends Zend_Form
-{
-
- public function init()
- {
- /* Form Elements & Other Definitions Here ... */
- }
-
-
-}
-