Exemple #1
0
 /**
  * Creates a password form input.
  *
  * @param   string  input name
  * @param   string  input value
  * @param   array   html attributes
  * @return  string
  */
 public function password($name, $value = NULL, array $attributes = NULL)
 {
     $attributes = Appform::add_class($attributes, 'password');
     $attributes['id'] = $name;
     $this->load_values($name, $value, $attributes);
     return Kohana_Form::password($name, $value, $attributes) . $this->addAlertSpan(isset($this->errors[$name]) ? $this->errors[$name] : NULL, $attributes);
 }
Exemple #2
0
 /**
  * Creates a submit form input.
  *
  * @param   string  input name
  * @param   string  input value
  * @param   array   html attributes
  * @return  string
  */
 public function submit($name, $value, array $attributes = NULL)
 {
     return Kohana_Form::submit($name, $value, Appform::add_class($attributes, 'submit'));
 }