Browse files

Added example showing accessing raw values via the input filter

- per request from SpiffyJr
  • Loading branch information...
1 parent 4d3444e commit 4f9b6fd7d186ba0b426082513bd3f6da4c4cc22b @weierophinney weierophinney committed May 22, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 documentation/manual/en/module_specs/zend.form.quick-start.xml
@@ -19,8 +19,7 @@
Form validation is as easy as providing an array of data to the
<methodname>setData()</methodname> method. If you want to simplify your work even more, you
can bind an object to the form; on successful validation, it will be populated from the
- validated values. (You can also access the raw values at any time by retrieving the input
- filter.)
+ validated values.
<example xml:id="zend.form.quick-start.programmatic">
@@ -422,6 +421,13 @@ if ($form->isValid() {
You can get the raw data if you want, by accessing the composed input filter.
+ <programlisting language="php"><![CDATA[
+$filter = $form->getInputFilter();
+$rawValues = $filter->getRawValues();
+$nameRawValue = $filter->getRawValue('name');
<example xml:id="zend.form.quick-start.input-specification">

0 comments on commit 4f9b6fd

Please sign in to comment.