Skip to content

Commit

Permalink
setValues() instead of setValue()
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh authored and weaverryan committed Mar 31, 2013
1 parent e0ebba8 commit f6d0476
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/dom_crawler.rst
Expand Up @@ -281,13 +281,13 @@ To work with multi-dimensional fields::
You must specify the fully qualified name of the field:: You must specify the fully qualified name of the field::


// Set a single field // Set a single field
$form->setValue('multi[0]', 'value'); $form->setValues(array('multi' => array('value')));


// Set multiple fields at once // Set multiple fields at once
$form->setValue('multi', array( $form->setValues(array('multi' => array(
1 => 'value', 1 => 'value',
'dimensional' => 'an other value' 'dimensional' => 'an other value'
)); )));


This is great, but it gets better! The ``Form`` object allows you to interact This is great, but it gets better! The ``Form`` object allows you to interact
with your form like a browser, selecting radio values, ticking checkboxes, with your form like a browser, selecting radio values, ticking checkboxes,
Expand Down

0 comments on commit f6d0476

Please sign in to comment.