CI_DB_query_builder::stop_cache()

stop_cache() Returns: CI_DB_query_builder instance (method chaining) Return type: CI_DB_query_builder Stops the Query Builder cache.

symbolic_permissions()

symbolic_permissions($perms) Parameters: $perms (int) – Permissions Returns: Symbolic permissions string Return type: string Takes numeric permissions (such as is returned by fileperms()) and returns standard symbolic notation of file permissions. echo symbolic_permissions(fileperms('./index.php')); // -rw-r--r--

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_Benchmark::mark()

mark($name) Parameters: $name (string) – the name you wish to assign to your marker Return type: void Sets a benchmark marker.

CI_Config::slash_item()

slash_item($item) Parameters: $item (string) – config item name Returns: Config item value with a trailing forward slash or NULL if not found Return type: mixed This method is identical to item(), except it appends a forward slash to the end of the item, if it exists.

General Topics

CodeIgniter URLs Controllers Reserved Names Views Models Helpers Using CodeIgniter Libraries Creating Libraries Using CodeIgniter Drivers Creating Drivers Creating Core System Classes Creating Ancillary Classes Hooks - Extending the Framework Core Auto-loading Resources Common Functions Compatibility Functions URI Routing Error Handling Caching Profiling Your Application Running via the CLI Managing your Applications Handling Multiple Environments Altern

form_button()

form_button([$data = ''[, $content = ''[, $extra = '']]]) Parameters: $data (string) – Button name $content (string) – Button label $extra (mixed) – Extra attributes to be added to the tag either as an array or a literal string Returns: An HTML button tag Return type: string Lets you generate a standard button element. You can minimally pass the button name and content in the first and second parameter: echo form_button('name','content'); // Would produce: <button name="name" t

CI_DB_query_builder::dbprefix()

dbprefix([$table = '']) Parameters: $table (string) – The table name to prefix Returns: The prefixed table name Return type: string Prepends a database prefix, if one exists in configuration.

set_value()

set_value($field[, $default = ''[, $html_escape = TRUE]]) Parameters: $field (string) – Field name $default (string) – Default value $html_escape (bool) – Whether to turn off HTML escaping of the value Returns: Field value Return type: string Permits you to set the value of an input form or textarea. You must supply the field name via the first parameter of the function. The second (optional) parameter allows you to set a default value for the form. The third (optional) parameter

CI_User_agent

class CI_User_agent is_browser([$key = NULL]) Parameters: $key (string) – Optional browser name Returns: TRUE if the user agent is a (specified) browser, FALSE if not Return type: bool Returns TRUE/FALSE (boolean) if the user agent is a known web browser. if ($this->agent->is_browser('Safari')) { echo 'You are using Safari.'; } elseif ($this->agent->is_browser()) { echo 'You are using a browser.'; } Note The string “Safari” in this example is an array