Permalink
Browse files

Adding support for url input

  • Loading branch information...
1 parent eb7567d commit cb5f57f0ed88bb1103713b3e921b5774b941d804 Maggion Emmanuel committed Aug 9, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Cake/View/Helper/FormHelper.php
View
5 lib/Cake/View/Helper/FormHelper.php
@@ -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);
}

0 comments on commit cb5f57f

Please sign in to comment.