CI_Parser::set_delimiters()

set_delimiters([$l = '{'[, $r = '}']]) Parameters: $l (string) – Left delimiter $r (string) – Right delimiter Return type: void Sets the delimiters (opening and closing) for a pseudo-variable “tag” in a template.

CodeIgniter Overview

The following pages describe the broad concepts behind CodeIgniter: Getting Started CodeIgniter at a Glance Supported Features Application Flow Chart Model-View-Controller Architectural Goals

CI_Trackback::convert_ascii()

convert_ascii($str) Parameters: $str (string) – Input string Returns: Converted string Return type: string Converts high ASCII text and MS Word special characterss to HTML entities.

CI_URI::ruri_to_assoc()

ruri_to_assoc([$n = 3[, $default = array()]]) Parameters: $n (int) – Segment index number $default (array) – Default values Returns: Associative routed URI segments array Return type: array This method is identical to uri_to_assoc(), except that it creates an associative array using the re-routed URI in the event you are using CodeIgniter’s URI Routing feature.

CI_Encrypt::encode()

encode($string[, $key = '']) Parameters: $string (string) – Data to encrypt $key (string) – Encryption key Returns: Encrypted string Return type: string Performs the data encryption and returns it as a string. Example: $msg = 'My secret message'; $encrypted_string = $this->encrypt->encode($msg); You can optionally pass your encryption key via the second parameter if you don’t want to use the one in your config file: $msg = 'My secret message'; $key = 'super-secret-key'; $e

anchor()

anchor($uri = '', $title = '', $attributes = '') Parameters: $uri (string) – URI string $title (string) – Anchor title $attributes (mixed) – HTML attributes Returns: HTML hyperlink (anchor tag) Return type: string Creates a standard HTML anchor link based on your local site URL. The first parameter can contain any segments you wish appended to the URL. As with the site_url() function above, segments can be a string or an array. Note If you are building links that are internal to

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_FTP::upload()

upload($locpath, $rempath[, $mode = 'auto'[, $permissions = NULL]]) Parameters: $locpath (string) – Local file path $rempath (string) – Remote file path $mode (string) – FTP mode, defaults to ‘auto’ (options are: ‘auto’, ‘binary’, ‘ascii’) $permissions (int) – File permissions (octal) Returns: TRUE on success, FALSE on failure Return type: bool Uploads a file to your server. You must supply the local path and the remote path, and you can optionally set the mode and permissions. E

html_escape()

html_escape($var) Parameters: $var (mixed) – Variable to escape (string or array) Returns: HTML escaped string(s) Return type: mixed This function acts as an alias for PHP’s native htmlspecialchars() function, with the advantage of being able to accept an array of strings. It is useful in preventing Cross Site Scripting (XSS).

array_column()

array_column(array $array, $column_key[, $index_key = NULL]) Parameters: $array (array) – Array to fetch results from $column_key (mixed) – Key of the column to return values from $index_key (mixed) – Key to use for the returned values Returns: An array of values representing a single column from the input array Return type: array For more information, please refer to the PHP manual for array_column().