Skip to content

Commit

Permalink
Fixed broken method in the HtmlHelper.
Browse files Browse the repository at this point in the history
HtmlHelper::inputTag() had the $size param removed.
HtmlHelper::inputTag() had variable with underscore in name still.
param in method was camelCased


git-svn-id: https://svn.cakephp.org/repo/trunk/cake@328 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
phpnut committed Jul 4, 2005
1 parent 8a2592b commit 24c9c04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/helpers/html.php
Expand Up @@ -225,14 +225,15 @@ function submitTag($caption='Submit', $html_options=null)
* Returns a formatted INPUT tag for HTML FORMs.
*
* @param string $tagName If field is to be used for CRUD, this should be modelName/fieldName
* @param int $size Size attribute for INPUT element
* @param array $htmlOptions
* @return string The formatted INPUT element
*/
function inputTag($tagName, $htmlOptions=null)
function inputTag($tagName, $size=20, $htmlOptions=null)
{
if (strpos($tagName, '/') !== false)
{
list($model, $field) = explode("/", $tag_name);
list($model, $field) = explode("/", $tagName);
}
else
{
Expand Down

0 comments on commit 24c9c04

Please sign in to comment.