CI_Form_validation::set_error_delimiters()

set_error_delimiters([$prefix = ' '[, $suffix = ' ']]) Parameters: $prefix (string) – Error message prefix $suffix (string) – Error message suffix Returns: CI_Form_validation instance (method chaining) Return type: CI_Form_validation Sets the default prefix and suffix for error messages.

CI_Form_validation::set_data()

set_data($data) Parameters: $data (array) – Array of data validate Returns: CI_Form_validation instance (method chaining) Return type: CI_Form_validation Permits you to set an array for validation, instead of using the default $_POST array.

CI_FTP

class CI_FTP connect([$config = array()]) Parameters: $config (array) – Connection values Returns: TRUE on success, FALSE on failure Return type: bool Connects and logs into to the FTP server. Connection preferences are set by passing an array to the function, or you can store them in a config file. Here is an example showing how you set preferences manually: $this->load->library('ftp'); $config['hostname'] = 'ftp.example.com'; $config['username'] = 'your-username'; $config[

CI_Form_validation::reset_validation()

reset_validation() Returns: CI_Form_validation instance (method chaining) Return type: CI_Form_validation Permits you to reset the validation when you validate more than one array. This method should be called before validating each new array.

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).

CI_Form_validation::error_array()

error_array() Returns: Array of error messages Return type: array Returns the error messages as an array.

CI_Form_validation::error_string()

error_string([$prefix = ''[, $suffix = '']]) Parameters: $prefix (string) – Error message prefix $suffix (string) – Error message suffix Returns: Error messages as a string Return type: string Returns all error messages (as returned from error_array()) formatted as a string and separated by a newline character.

CI_Form_validation::run()

run([$group = '']) Parameters: $group (string) – The name of the validation group to run Returns: TRUE on success, FALSE if validation failed Return type: bool Runs the validation routines. Returns boolean TRUE on success and FALSE on failure. You can optionally pass the name of the validation group via the method, as described in: Saving Sets of Validation Rules to a Config File

CI_Form_validation::has_rule()

has_rule($field) Parameters: $field (string) – Field name Returns: TRUE if the field has rules set, FALSE if not Return type: bool Checks to see if there is a rule set for the specified field.

CI_Form_validation

class CI_Form_validation set_rules($field[, $label = ''[, $rules = '']]) Parameters: $field (string) – Field name $label (string) – Field label $rules (mixed) – Validation rules, as a string list separated by a pipe “|”, or as an array or rules Returns: CI_Form_validation instance (method chaining) Return type: CI_Form_validation Permits you to set validation rules, as described in the tutorial sections above: Setting Validation Rules Saving Sets of Validation Rules to a Config F