Added method to generate a password input.
This commit is contained in:
parent
7933bac647
commit
c1e1ab3ea1
1 changed files with 16 additions and 0 deletions
|
@ -75,6 +75,22 @@ class Form extends Object
|
|||
return $this->input($name, $value, $classes, $additional, 'hidden');
|
||||
}
|
||||
|
||||
/**
|
||||
* Password Input
|
||||
*
|
||||
* Shorthand method to generate a password input.
|
||||
*
|
||||
* @param string $name name (and ID) for the select element
|
||||
* @param string $value optional preset value
|
||||
* @param string $classes optional class names
|
||||
* @param string $additional optional additional parameters
|
||||
* @return string HTML for the input
|
||||
*/
|
||||
public function passwordInput($name, $value = '', $classes = '', $additional = null)
|
||||
{
|
||||
return $this->input($name, $value, $classes, $additional, 'password');
|
||||
}
|
||||
|
||||
/**
|
||||
* Security Input
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue