set_status_header()

set_status_header($code[, $text = '']) Parameters: $code (int) – HTTP Reponse status code $text (string) – A custom message to set with the status code Return type: void Permits you to manually set a server status header. Example: set_status_header(401); // Sets the header as: Unauthorized See here for a full list of headers.

password_hash()

password_hash($password, $algo[, $options = array()]) Parameters: $password (string) – Plain-text password $algo (int) – Hashing algorithm $options (array) – Hashing options Returns: Hashed password or FALSE on failure Return type: string For more information, please refer to the PHP manual for password_hash(). Note Unless you provide your own (and valid) salt, this function has a further dependency on an available CSPRNG source. Each of the following would satisfy that: - mcrypt

form_radio()

form_radio([$data = ''[, $value = ''[, $checked = FALSE[, $extra = '']]]]) Parameters: $data (array) – Field attributes data $value (string) – Field value $checked (bool) – Whether to mark the radio button as being checked $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string Returns: An HTML radio input tag Return type: string This function is identical in all respects to the form_checkbox() function above except that it uses the “radio

Helper Functions

Helpers, as the name suggests, help you with tasks. Each helper file is simply a collection of functions in a particular category. There are URL Helpers, that assist in creating links, there are Form Helpers that help you create form elements, Text Helpers perform various text formatting routines, Cookie Helpers set and read cookies, File Helpers help you deal with files, etc. Unlike most other systems in CodeIgniter, Helpers are not written in an Object Oriented format. They are simple, proced

show_error()

show_error($message, $status_code, $heading = 'An Error Was Encountered') Parameters: $message (mixed) – Error message $status_code (int) – HTTP Response status code $heading (string) – Error page heading Return type: void This function will display the error message supplied to it using the error template appropriate to your execution: application/views/errors/html/error_general.php or: application/views/errors/cli/error_general.php The optional parameter $status_code determine

CI_DB_query_builder::get_compiled_insert()

get_compiled_insert([$table = ''[, $reset = TRUE]]) Parameters: $table (string) – Table name $reset (bool) – Whether to reset the current QB values or not Returns: The compiled SQL statement as a string Return type: string Compiles an INSERT statement and returns it as a string.

form_password()

form_password([$data = ''[, $value = ''[, $extra = '']]]) Parameters: $data (array) – Field attributes data $value (string) – Field value $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string Returns: An HTML password input field tag Return type: string This function is identical in all respects to the form_input() function above except that it uses the “password” input type.

CI_DB_query_builder::select_min()

select_min([$select = ''[, $alias = '']]) Parameters: $select (string) – Field to compute the minimum of $alias (string) – Alias for the resulting value name Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Adds a SELECT MIN(field) clause to a query.

auto_typography()

auto_typography($str[, $reduce_linebreaks = FALSE]) Parameters: $str (string) – Input string $reduce_linebreaks (bool) – Whether to reduce multiple instances of double newlines to two Returns: HTML-formatted typography-safe string Return type: string Formats text so that it is semantically and typographically correct HTML. This function is an alias for CI_Typography::auto_typography(). For more info, please see the Typography Library documentation. Usage example: $string = auto_typ

CI_Xmlrpc::send_error_message()

send_error_message($number, $message) Parameters: $number (int) – Error number $message (string) – Error message Returns: XML_RPC_Response instance Return type: XML_RPC_Response This method lets you send an error message from your server to the client. First parameter is the error number while the second parameter is the error message. return $this->xmlrpc->send_error_message(123, 'Requested data not available');