mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 12:02:41 +00:00
Fixed broken method in the HtmlHelper.
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
This commit is contained in:
parent
8a2592ba3c
commit
24c9c0478f
1 changed files with 3 additions and 2 deletions
|
@ -225,14 +225,15 @@ class HtmlHelper
|
|||
* 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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue