Skip to content
Permalink
Browse files

Adding some documentation.

  • Loading branch information...
markstory committed Aug 17, 2010
1 parent e79df23 commit 4efc170ce4b9842ae5ccd6421155f8b8d1639896
Showing with 11 additions and 0 deletions.
  1. +11 −0 cake/libs/view/helpers/form.php
@@ -1153,6 +1153,17 @@ public function password($fieldName, $options = array()) {
* of various types. e.g. `$this->Form->text();` will create `<input type="text" />` while
* `$this->Form->range();` will create `<input type="range" />`
*
* ### Usage
*
* `$this->Form->search('User.query', array('value' => 'test'));`
*
* Will make an input like:
*
* `<input type="search" id="UserQuery" name="data[User][query]" value="test" />`
*
* The first argument to an input type should always be the fieldname, in `Model.field` format.
* The second argument should always be an array of attributes for the input.
*
* @param string $method Method name / input type to make.
* @param array $params Parameters for the method call
* @return string Formatted input method.

0 comments on commit 4efc170

Please sign in to comment.
You can’t perform that action at this time.