CI_Table::set_caption()

set_caption($caption) Parameters: $caption (string) – Table caption Returns: CI_Table instance (method chaining) Return type: CI_Table Permits you to add a caption to the table. $this->table->set_caption('Colors');

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

octal_permissions()

octal_permissions($perms) Parameters: $perms (int) – Permissions Returns: Octal permissions string Return type: string Takes numeric permissions (such as is returned by fileperms()) and returns a three character octal notation of file permissions. echo octal_permissions(fileperms('./index.php')); // 644

CI_FTP::chmod()

chmod($path, $perm) Parameters: $path (string) – Path to alter permissions for $perm (int) – Permissions (octal) Returns: TRUE on success, FALSE on failure Return type: bool Permits you to set file permissions. Supply the path to the file or directory you wish to alter permissions on: // Chmod "bar" to 755 $this->ftp->chmod('/public_html/foo/bar/', 0755);

Design and Architectural Goals

Our goal for CodeIgniter is maximum performance, capability, and flexibility in the smallest, lightest possible package. To meet this goal we are committed to benchmarking, re-factoring, and simplifying at every step of the development process, rejecting anything that doesn’t further the stated objective. From a technical and architectural standpoint, CodeIgniter was created with the following objectives: Dynamic Instantiation. In CodeIgniter, components are loaded and routines executed only w

CI_Config::base_url()

base_url() Returns: Base URL Return type: string This method retrieves the URL to your site, plus an optional path such as to a stylesheet or image. This method is normally accessed via the corresponding functions in the URL Helper.

CI_DB_query_builder

class CI_DB_query_builder reset_query() Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Resets the current Query Builder state. Useful when you want to build a query that can be cancelled under certain conditions. start_cache() Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Starts the Query Builder cache. stop_cache() Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_que

set_select()

set_select($field[, $value = ''[, $default = FALSE]]) Parameters: $field (string) – Field name $value (string) – Value to check for $default (string) – Whether the value is also a default one Returns: ‘selected’ attribute or an empty string Return type: string If you use a <select> menu, this function permits you to display the menu item that was selected. The first parameter must contain the name of the select menu, the second parameter must contain the value of each item,

CI_Table::set_empty()

set_empty($value) Parameters: $value (mixed) – Value to put in empty cells Returns: CI_Table instance (method chaining) Return type: CI_Table Lets you set a default value for use in any table cells that are empty. You might, for example, set a non-breaking space: $this->table->set_empty("&nbsp;");

CI_Session::__set()

__set($key, $value) Parameters: $key (string) – Session item key $value (mixed) – Value to assign to the session item key Returns: void A magic method that allows you to assign items to $_SESSION by accessing them as $this->session properties: $this->session->foo = 'bar'; // Results in: // $_SESSION['foo'] = 'bar';