CI_Form_validation::error()

error($field[, $prefix = ''[, $suffix = '']])

Parameters:
  • $field (string) – Field name
  • $prefix (string) – Optional prefix
  • $suffix (string) – Optional suffix
Returns:

Error message string

Return type:

string

Returns the error message for a specific field, optionally adding a prefix and/or suffix to it (usually HTML tags).

doc_CodeIgniter
2016-10-15 16:31:33
Comments
Leave a Comment

Please login to continue.