form_input()

form_input([$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 text input field tag Return type: string Lets you generate a standard text input field. You can minimally pass the field name and value in the first and second parameter: echo form_input('username', 'johndoe'); Or you can pass an associ

CI_URI::ruri_string()

ruri_string() Returns: Routed URI string Return type: string This method is identical to uri_string(), except that it returns the re-routed URI in the event you are using CodeIgniter’s URI Routing feature.

CI_Upload::initialize()

initialize([array $config = array()[, $reset = TRUE]]) Parameters: $config (array) – Preferences $reset (bool) – Whether to reset preferences (that are not provided in $config) to their defaults Returns: CI_Upload instance (method chaining) Return type: CI_Upload

CI_URI::rsegment()

rsegment($n[, $no_result = NULL]) Parameters: $n (int) – Segment index number $no_result (mixed) – What to return if the searched segment is not found Returns: Routed segment value or $no_result value if not found Return type: mixed This method is identical to segment(), except that it lets you retrieve a specific segment from your re-routed URI in the event you are using CodeIgniter’s URI Routing feature.

delete_cookie()

delete_cookie($name[, $domain = ''[, $path = '/'[, $prefix = '']]]) Parameters: $name (string) – Cookie name $domain (string) – Cookie domain (usually: .yourdomain.com) $path (string) – Cookie path $prefix (string) – Cookie name prefix Return type: void Lets you delete a cookie. Unless you’ve set a custom path or other values, only the name of the cookie is needed. delete_cookie('name'); This function is otherwise identical to set_cookie(), except that it does not have the value a

CI_DB_driver::trans_strict()

trans_strict([$mode = TRUE]) Parameters: $mode (bool) – Strict mode flag Return type: void Enable/disable transaction “strict” mode. When strict mode is enabled, if you are running multiple groups of transactions and one group fails, all subsequent groups will be rolled back. If strict mode is disabled, each group is treated autonomously, meaning a failure of one group will not affect any others.

CI_Encryption::create_key()

create_key($length) Parameters: $length (int) – Output length Returns: A pseudo-random cryptographic key with the specified length, or FALSE on failure Return type: string Creates a cryptographic key by fetching random data from the operating system’s sources (i.e. /dev/urandom).

CI_DB_result::result()

result([$type = 'object']) Parameters: $type (string) – Type of requested results - array, object, or class name Returns: Array containing the fetched rows Return type: array A wrapper for the result_array(), result_object() and custom_result_object() methods. Usage: see Result Arrays.

CI_User_agent::is_referral()

is_referral() Returns: TRUE if the user agent is a referral, FALSE if not Return type: bool Returns TRUE/FALSE (boolean) if the user agent was referred from another site.

CI_DB_utility::xml_from_result()

xml_from_result($query[, $params = array()]) Parameters: $query (object) – A database result object $params (array) – An associative array of preferences Returns: The generated XML document as a string Return type: string Translates a database result object into an XML document.