Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding support for url input

  • Loading branch information...
commit cb5f57f0ed88bb1103713b3e921b5774b941d804 1 parent eb7567d
Maggion Emmanuel authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Cake/View/Helper/FormHelper.php
5 lib/Cake/View/Helper/FormHelper.php
View
@@ -1072,6 +1072,11 @@ public function input($fieldName, $options = array()) {
case 'textarea':
$input = $this->textarea($fieldName, $options + array('cols' => '30', 'rows' => '6'));
break;
+ case 'url':
+ $options = $this->_initInputField($fieldName, $options);
+ $options['type'] = 'url';
+ $input = $this->Html->useTag('input', $options['name'], $options);
+ break;
default:
$input = $this->{$type}($fieldName, $options);
}
Please sign in to comment.
Something went wrong with that request. Please try again.