CI_Upload::display_errors()

display_errors([$open = '

'[, $close = '

']])

Parameters:
  • $open (string) – Opening markup
  • $close (string) – Closing markup
Returns:

Formatted error message(s)

Return type:

string

Retrieves any error messages if the do_upload() method returned false. The method does not echo automatically, it returns the data so you can assign it however you need.

Formatting Errors

By default the above method wraps any errors within <p> tags. You can set your own delimiters like this:

$this->upload->display_errors('<p>', '</p>');
doc_CodeIgniter
2016-10-15 16:32:01
Comments
Leave a Comment

Please login to continue.